Search results
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
- {{Scripting/Needs_Text}} <source lang=squirrel> ...508 bytes (57 words) - 18:57, 30 January 2017
- This instance variable returns player's IP address. <pre>string player.IP</pre> ...708 bytes (82 words) - 18:49, 30 January 2017
- This instance variable returns or sets player's score. player.Score = value</pre> ...675 bytes (75 words) - 12:39, 11 April 2017
- <pre>player.Spawn();</pre> The following example spawns a specified player. ...559 bytes (58 words) - 18:57, 30 January 2017
- <pre>int player.Weapon</pre> This command gives player the name of the weapon they are using when they type '/mywep'. ...476 bytes (55 words) - 18:58, 30 January 2017
- <pre>bool Player.CameraLocked</pre> '''> Player''' - The player instance to lock camera for. ...405 bytes (47 words) - 18:46, 30 January 2017
- <pre>function onPlayerCommand( player, cmd, text ) ...if ( !plr ) MessagePlayer( "Error: Player '" + text + "' is not online.", player ); ...445 bytes (44 words) - 18:57, 30 January 2017
- This will return a special world ID for a player <pre>Player.UniqueWorld</pre> ...419 bytes (46 words) - 17:20, 25 September 2017
- {{Scripting/Needs_Text}} <pre>player.SetAnim( animGroupID, animID )</pre> ...390 bytes (40 words) - 18:56, 30 January 2017
- <pre>function onPlayerEnterVehicle( player, vehicle ) ...gePlayer( "You are entering: " + GetVehicleNameFromModel( vehicle.Model ), player ); ...351 bytes (34 words) - 22:04, 30 January 2017
- <pre>player.Armour</pre> <source lang=squirrel> ...452 bytes (49 words) - 18:47, 30 January 2017
- <pre>player.PutInVehicleSlot( ID, slotID );</pre> == Related Functions == ...197 bytes (20 words) - 18:58, 30 January 2017
- Gets or sets player name. <pre>player.Name = string</pre> ...412 bytes (45 words) - 10:55, 18 November 2017
- {{Scripting/Needs_Text}} This function will get a player's key in server ...437 bytes (50 words) - 18:50, 30 January 2017
- This will return player Unique ID. <pre>string player.UniqueID2</pre> ...574 bytes (64 words) - 18:57, 30 January 2017
- This will return player Unique ID. <pre>string player.UniqueID</pre> ...572 bytes (64 words) - 18:57, 30 January 2017
- read - player.Speed set - player.Speed = Vector( x, y, z ) ...449 bytes (52 words) - 14:25, 12 December 2018
- This function will send a fake private message from one player to another. ...ng/Squirrel/Functions#Player Functions|Player]]'' '''playerToFake''' - The player to send the message as ...942 bytes (121 words) - 18:19, 30 January 2017
- This is called when a player spawns. <pre>function onPlayerSpawn( player )</pre> ...780 bytes (96 words) - 22:15, 30 January 2017
- Use this function to get a player's ping. '''(Read only)''' <pre>int player.Ping ...595 bytes (71 words) - 18:50, 30 January 2017
- <pre>function onPlayerCommand( player, cmd, text ) { player.RemoveMarker(); ...415 bytes (44 words) - 18:50, 30 January 2017
- {{Scripting/Deprecated}} {{Scripting/Noop}} ...179 bytes (17 words) - 18:56, 30 January 2017
- <pre>int player.Slot</pre> Sets or Returns player's weapon slot. ...522 bytes (59 words) - 13:51, 12 December 2018
- This event is called every time a player crashes. <pre>function onPlayerCrashDump( player, CrashReport )</pre> ...714 bytes (82 words) - 22:16, 30 January 2017
- This function bans any specified player. <pre>BanPlayer( player )</pre> ...961 bytes (96 words) - 18:41, 30 January 2017
- {{Scripting/Needs_Text}} <pre>player.ID</pre> ...379 bytes (41 words) - 18:49, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...667 bytes (74 words) - 22:04, 30 January 2017
- == Administrative Functions == {{Scripting/Squirrel/Functions/Administrative Functions}} ...2 KB (169 words) - 20:40, 22 June 2019
- <pre>float player.Angle</pre> <pre>function onPlayerCommand( player, cmd, text ) ...367 bytes (37 words) - 18:46, 30 January 2017
- {{Scripting/Needs_Text}} <pre>player.SetCameraPos( Vector pos, Vector look );</pre> ...262 bytes (28 words) - 18:56, 30 January 2017
- {{Scripting/Needs_Text}} <pre>player.Class</pre> ...561 bytes (64 words) - 18:47, 30 January 2017
- <pre>player.Eject()</pre> <source lang=squirrel> ...726 bytes (74 words) - 18:47, 30 January 2017
- <pre>Player.Widescreen = false; Player.Widescreen = true;</pre> ...212 bytes (22 words) - 18:58, 30 January 2017
- <pre>Player.WhiteScanlines = false; Player.WhiteScanlines = true;</pre> ...220 bytes (22 words) - 18:58, 30 January 2017
- This is called when a player joins the server. This is fired ''after'' data has been sent to the client. <pre>function onPlayerJoin( player )</pre> ...740 bytes (92 words) - 22:18, 30 January 2017
- Called when a player changes his name. <pre>function OnPlayerNameChange( player, oldName, newName )</pre> ...893 bytes (111 words) - 22:16, 30 January 2017
- This function will kick Player defined. <pre>player.Kick();</pre> ...763 bytes (89 words) - 18:50, 30 January 2017
- local veh = player.Vehicle; MessagePlayer( "** Your vehicle world is " + veh.World, player ); ...361 bytes (45 words) - 22:05, 30 January 2017
- ...r.Vehicle ) MessagePlayer("You must be in a vehicle to use this command.", player ); local veh = player.Vehicle; ...426 bytes (52 words) - 07:53, 26 April 2019
- This function returns the action of any player as integer. <pre>Player.Action</pre> ...790 bytes (91 words) - 18:45, 30 January 2017
- <source lang=squirrel> function onPickupPickedUp( player, pickup ) ...614 bytes (74 words) - 18:37, 30 January 2017
- <pre>player.State (The player's current state as an integer)</pre> function onPlayerCommand( player, cmd, text ) ...900 bytes (112 words) - 18:57, 30 January 2017
- <pre>player.World;</pre> ...player.World is a function which be used to determine to what world is the player belonging to.</pre> ...461 bytes (57 words) - 18:58, 30 January 2017
- This function will get the wanted level of the player <pre>integer player.WantedLevel;</pre> ...611 bytes (74 words) - 18:58, 30 January 2017
- This Function Plays Sound for any specific player. '''PlaySoundForPlayer(player, soundID)''' ...492 bytes (52 words) - 18:45, 30 January 2017
- This function will disarm the player <pre>player.Disarm();</pre> ...405 bytes (44 words) - 18:47, 30 January 2017
- This is called when a player uses a command. <pre>function onPlayerCommand( player, cmd, parameters )</pre> ...1 KB (141 words) - 19:28, 4 August 2017
- *'''Returns player's current Vehicle Status, as integer.''' <pre>player.VehicleStatus</pre> ...758 bytes (85 words) - 12:45, 12 December 2018
- This function will send a simple message to everyone but the player specified. <pre>MessageAllExcept(message, player)</pre> ...872 bytes (112 words) - 18:18, 30 January 2017
- This variable is a getter/setter of the player's cash. <pre>player.Cash</pre> ...802 bytes (96 words) - 18:47, 30 January 2017
- <pre>player.ShowMarkers = bool</pre> *'''player''': player instance ...697 bytes (81 words) - 14:08, 12 December 2018
- <pre>function onPlayerRequestSpawn( player )</pre> .../Functions#Player_Functions|''Player'']] '''player''' - The Pointer of the player. ...966 bytes (110 words) - 22:14, 30 January 2017
- This function will send a big message on the screen to a player. ...ipting/Squirrel/Functions#Player Functions|Player]]'' '''playerTo''' - The player to send the message to ...765 bytes (103 words) - 18:19, 30 January 2017
- <pre>local ID = player.Vehicle.ID;</pre> function onPlayerEnterVehicle( player, vehicle, door ) ...590 bytes (67 words) - 22:03, 30 January 2017
- *'''Sends a player to the Selecting Room ( aka Request Class )''' <pre>player.Select();</pre> ...682 bytes (81 words) - 12:54, 12 December 2018
- This is called when a player exits any checkpoint <pre>function onCheckpointExited( player, checkpoint )</pre> ...794 bytes (92 words) - 22:11, 30 January 2017
- this function allows you to send a private Message ( PM ) to a player. <pre>function onPlayerPM( player, playerTo, text )</pre> ...1 KB (131 words) - 22:15, 30 January 2017
- This function will send a simple message to the player specified. <pre>MessagePlayer(message, player)</pre> ...815 bytes (104 words) - 18:19, 30 January 2017
- This function will send a private message to the player specified. <pre>PrivMessage(player, message)</pre> ...813 bytes (105 words) - 18:19, 30 January 2017
- This function will show the FPS(Frames Per Second) of the player <pre>player.FPS();</pre> ...418 bytes (49 words) - 18:48, 30 January 2017
- This function is called whenever a player enters any checkpoint. function onCheckpointEntered( player, checkpoint ); ...930 bytes (108 words) - 22:11, 30 January 2017
- Retrieve a player object from player's name or ID. * ''string/integer'' '''identity''' - The player's name or ID. ...915 bytes (101 words) - 18:45, 30 January 2017
- This event is called when the player touches a object! <pre>onObjectBump(object,player)</pre> ...400 bytes (48 words) - 13:32, 7 May 2019
- This event is called every time a player kills another (and they're not in the same team). <pre>function onPlayerKill( killer, player, reason, bodypart )</pre> ...1,021 bytes (121 words) - 20:43, 22 June 2019
- <source lang=squirrel> function onPlayerCommand(player, cmd, text) { ...902 bytes (89 words) - 10:45, 26 April 2019
- * ''string'' '''name''' - Player Name The Following example will tell a player's ID. ...1 KB (164 words) - 18:44, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...536 bytes (59 words) - 21:54, 30 January 2017
- This function Returns if the Player Is On Fire or Not. <pre>player.IsOnFire</pre> ...529 bytes (61 words) - 18:49, 30 January 2017
- This function will show AFK( Away From Keboard ) player. <pre>player.Away</pre> ...673 bytes (74 words) - 18:46, 30 January 2017
- This function is used to set white scan lines for a specific player. <pre>SetWhiteScanLines( player, true ); ...842 bytes (101 words) - 19:48, 4 August 2017
- This function is used to check if the player is spawned or not. <pre>player.IsSpawned</pre> ...674 bytes (80 words) - 10:05, 21 May 2019
- ...spawncar command. Type /spawn VehicleID. The vehicle will be moved to the player, that uses this command. The FindVehicle function is here very important. <source lang=squirrel> ...1 KB (147 words) - 22:02, 30 January 2017
- This function is used to set cinematic borders for the specific player. <pre>SetCinematicBorder( player, true ); ...840 bytes (99 words) - 19:40, 4 August 2017
- This event is called when a player kills another player from the same team. <pre>function onPlayerTeamKill( killer, player, reason, bodypart )</pre> ...957 bytes (112 words) - 22:15, 30 January 2017
- ...unction is used to set green scan lines for the specific player. In single player when we enter the elavator of bank-2 we see these scanlines. <pre>SetGreenScanLines( player, true ); and ...925 bytes (116 words) - 19:44, 4 August 2017
- This function will send a coloured message to a player. <pre>ClientMessage(message, player, R, G, B)</pre> ...835 bytes (113 words) - 18:18, 30 January 2017
- This function will display the textdraw on the entered player's screen. <pre>Textdraw.ShowForPlayer( player )</pre> ...714 bytes (82 words) - 11:07, 12 March 2016
- This is called when a player uses a command. <pre>function onPlayerChat( player, message )</pre> ...746 bytes (93 words) - 22:15, 30 January 2017
- This function is used to get the amount of ammo of the weapon the player is holding. <pre>player.Ammo</pre> ...436 bytes (54 words) - 10:03, 21 May 2019
- {{Scripting/Needs_Text}} <pre>player.SetDrunkLevel(int, int)</pre> ...603 bytes (60 words) - 18:56, 30 January 2017
- <pre>CreateSphere( player, world, pos, rgb, radius )</pre> ...ayer'']] | ''null'' '''player''' - The player to stream this sphere to. If player is null it will be shown to everyone ...1,001 bytes (130 words) - 21:38, 1 July 2015
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...521 bytes (55 words) - 19:17, 30 January 2017
- This example will check whether the player connects from the same IP than earlier and auto-logs them in. <code lang="squirrel"> ...1 KB (147 words) - 18:16, 30 January 2017
- This Function is trigged when a player is crouching. <pre>function onPlayerCrouchChange( player, isCrouchingNow )</pre> ...923 bytes (108 words) - 22:17, 30 January 2017
- This function will inform you whether a player is typing or not. -> This function is triggered when a player starts typing. ...1 KB (171 words) - 19:22, 4 August 2017
- This event is called when a player is burning or stopped burning. onPlayerOnFireChange( player, isOnFireNow ) ...403 bytes (43 words) - 22:17, 30 January 2017
- This function will set the wanted level of the player <pre>null player.SetWantedLevel( wantedLevel );</pre> ...930 bytes (94 words) - 18:56, 30 January 2017
- *'''Returns player's current Vehicle Slot, as integer.''' <pre>player.VehicleSlot</pre> ...775 bytes (91 words) - 12:44, 12 December 2018
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...570 bytes (65 words) - 22:03, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...563 bytes (62 words) - 19:17, 30 January 2017
- <pre>vehicle player.Vehicle player.Vehicle = newVehicle</pre> ...893 bytes (102 words) - 18:57, 30 January 2017
- Returns or changes player's position. <pre>player.Pos</pre> ...788 bytes (97 words) - 18:50, 30 January 2017
- *'''Set/Get player's Second World''' <pre>player.SecWorld;</pre> ...973 bytes (128 words) - 13:32, 12 December 2018
- This event is called every time a player starts typing in chat box. <pre>function onPlayerBeginTyping( player )</pre> ...456 bytes (53 words) - 22:15, 30 January 2017
- This event is called every time a player stops typing in chat box. <pre>function onPlayerEndTyping( player )</pre> ...451 bytes (53 words) - 22:16, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...536 bytes (58 words) - 19:15, 30 January 2017
- This function will return the current status of any specified player's Marker. <pre>Player.HasMarker</pre> ...875 bytes (106 words) - 18:48, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand(player, command, arguments) ...857 bytes (94 words) - 17:08, 3 August 2017
- This function will play a sound for a specific player <pre>Player.PlaySound( sound )</pre> ...527 bytes (60 words) - 21:00, 17 December 2018
- When a player changes his weapon to newone or oldone. <pre>function onPlayerWeaponChange( player, oldwep, newwep )</pre> ...1 KB (139 words) - 22:16, 30 January 2017
- <source lang=squirrel> function OnPlayerCommand( player , cmd , text ) ...587 bytes (61 words) - 22:03, 30 January 2017
- This function will return the current status of any specified player's Chat Tags. <pre>Player.HasChatTags</pre> ...874 bytes (106 words) - 18:48, 30 January 2017
- <code>function onPickupPickedUp( player, pickup )</code> <source lang="squirrel"> ...434 bytes (46 words) - 22:12, 30 January 2017
- This example will restore the cash amount player had on a previous visit. <code lang="squirrel"> ...1,003 bytes (129 words) - 18:15, 30 January 2017
- This event is called every time a player wants to spawn. <pre>function onPlayerRequestClass( player, classID, team, skin )</pre> ...579 bytes (69 words) - 22:17, 30 January 2017
- This event is called when a player shoots an object. <source lang=squirrel> ...456 bytes (54 words) - 13:34, 7 May 2019
- This example will save player's IP to file 'IPs.ini' when they join. <code lang="squirrel"> ...1 KB (143 words) - 18:16, 30 January 2017
- <pre>player.StandingOnVehicle</pre> This function will return the instance of the vehicle player is standing on. ...775 bytes (89 words) - 13:43, 12 December 2018
- Add speed to a player. <source lang=squirrel> ...521 bytes (63 words) - 11:02, 26 April 2019
- function onPickupPickedUp( player, pickup ) == Related Functions == ...471 bytes (47 words) - 18:37, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...1 KB (131 words) - 09:36, 24 November 2017
- <source lang=squirrel>function onPlayerCommand(player, cmd, parameters) ...= mysql_query(vcmpdb, "SELECT kills, deaths FROM accounts WHERE name = '"+player.Name+"'"); ...657 bytes (81 words) - 18:28, 30 January 2017
- This example will check whether the player has been frozen earlier and if so, freezes them on join. <code lang="squirrel"> ...1 KB (159 words) - 18:15, 30 January 2017
- ...join message is enabled or not when player types the command.<source lang=squirrel> function onPlayerCommand( player, cmd, text ); ...896 bytes (105 words) - 19:13, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...697 bytes (77 words) - 22:05, 30 January 2017
- This function will set the player's tag visible to only his/her team. <source lang=squirrel> ...647 bytes (71 words) - 21:50, 30 January 2017
- This is called when player's health amount changes. <pre>function onPlayerHealthChange( player, lastHP, newHP )</pre> ...850 bytes (107 words) - 22:16, 30 January 2017
- This command will change the server password when a player types '/setpass anystring'. <source lang="squirrel"> ...725 bytes (85 words) - 21:49, 30 January 2017
- This is called when a player enters any sphere. function OnSphereEntered( player, sphere ) ...510 bytes (60 words) - 15:56, 7 August 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, arr ) ...574 bytes (64 words) - 19:17, 30 January 2017
- <source lang=squirrel>function onPlayerJoin() local query<- mysql_query(vcmpdb, "SELECT * FROM bans WHERE IP = '"+player.IP+"'"); ...568 bytes (72 words) - 18:28, 30 January 2017
- This function allows the server to inform the player, that he pressed the key and and the key works like a command. <pre>function onKeyDown( player, key )</pre> ...1 KB (188 words) - 19:59, 11 February 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ); ...609 bytes (67 words) - 18:33, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...701 bytes (80 words) - 22:04, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...722 bytes (81 words) - 22:04, 30 January 2017
- This function disconnects a client from the server, aka kick a player. <pre>KickPlayer( player )</pre> ...1 KB (134 words) - 18:45, 30 January 2017
- This function will send a coloured message to a player. <pre>ClientMessage( message, player, R, G, B )</pre> ...784 bytes (108 words) - 10:56, 27 August 2015
- <pre>player.StandingOnObject</pre> This function will return the instance of the object player is standing on, if it was created via '''CreateObject''' ...811 bytes (98 words) - 13:44, 12 December 2018
- <pre>CreateCheckpoint(player, world, isSphere, pos, argb, radius)</pre> ...rrel/Functions#Player_Functions|''Player'']] | ''null'' '''player''' - The player to stream this checkpoint to. If the variable is null, it will be shown to ...1 KB (162 words) - 02:01, 3 July 2018
- This event is called when a player exits a Vehicle. <pre>onPlayerExitVehicle( player, vehicle )</pre> ...645 bytes (77 words) - 22:22, 30 January 2017
- This function will return the appearence of the wasted screen when a player dies. * ''[[Scripting/Squirrel/Functions/WastedSettings|WastedSettings]]'' '''wastedSettings''' - The wasted setting ...518 bytes (59 words) - 21:58, 30 January 2017
- * ''[[Scripting/Squirrel/Functions/Vector|Vector]]'' '''pos''' - The position of the sound to be played at <source lang=squirrel> ...818 bytes (103 words) - 18:03, 30 January 2017
- This is called when a player dies. e.g.: drowned or self-kill. <pre>function onPlayerDeath( player, reason )</pre> ...1 KB (173 words) - 22:15, 30 January 2017
- <pre>Player.GiveMoney( Ammount );</pre> '''> Player''' - The player instance. ...1 KB (142 words) - 18:48, 30 January 2017
- <pre>onSphereExited( player, sphere )</pre> * ''CPlayer'' '''player''' - The player instance, or the one who exited the sphere. ...561 bytes (73 words) - 22:21, 30 January 2017
- function onPlayerCommand( player, cmd, text ) if ( !text ) MessagePlayer( "SYNTAX: /"+cmd+" [Sphere ID]", player ); ...886 bytes (93 words) - 16:56, 15 March 2016
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...707 bytes (81 words) - 17:59, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...594 bytes (66 words) - 19:13, 30 January 2017
- <pre>Player.Colour = RGB( Red, Green, Blue )</pre> '''> Player''' - The player instance to set colour of. ...619 bytes (83 words) - 18:48, 30 January 2017
- This function will inform you the ID(s) of they keys that player has pressed at the current moment. -> This function is triggered whenever a player presses any key of keyboard. ...2 KB (206 words) - 19:21, 4 August 2017
- This example will freeze a player and store the control state to an ini file when they type '/c freezeme'. <code lang="squirrel"> ...1 KB (171 words) - 18:16, 30 January 2017
- This function will toggle the player nametags on or off. {{Scripting/Needs_Example}} ...383 bytes (41 words) - 21:50, 30 January 2017
- This function is used to get the weapon ID of the weapon the player is carrying at the entered slot ID. <pre>Player.GetWeaponAtSlot( slot );</pre> ...2 KB (196 words) - 18:48, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...646 bytes (73 words) - 19:15, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...661 bytes (74 words) - 19:13, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...672 bytes (75 words) - 19:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...654 bytes (75 words) - 19:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player, cmd, text) { ...671 bytes (75 words) - 10:46, 26 April 2019
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...608 bytes (70 words) - 19:14, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...599 bytes (69 words) - 19:12, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...719 bytes (77 words) - 21:50, 30 January 2017
- ...urrent water level to everyone when someone types the command.<source lang=squirrel> function onPlayerCommand( player, cmd, text ); ...781 bytes (95 words) - 19:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...624 bytes (71 words) - 19:15, 30 January 2017
- This function will send a big message on the screen to every player. <source lang=squirrel> ...854 bytes (102 words) - 18:18, 30 January 2017
- <source lang=squirrel> function onPlayerEnterVehicle(player, veh, door) ...516 bytes (63 words) - 11:46, 2 June 2019
- This example will teleport the player to a previously saved location when they type '/c gotoloc LocationName'. <code lang ="squirrel"> ...1 KB (163 words) - 18:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...732 bytes (78 words) - 21:47, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...762 bytes (84 words) - 22:02, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...602 bytes (63 words) - 19:16, 30 January 2017
- == Functions == In the following example the player will teleport to the coordinates represented in '''X''', '''Y''', '''Z'''. ...819 bytes (108 words) - 18:01, 30 January 2017
- *[[Scripting/Squirrel/Functions/cRGB|''cRGB'']] '''rgb''' - The checkpoint color <source lang="squirrel"> ...628 bytes (69 words) - 17:59, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...764 bytes (97 words) - 22:02, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...722 bytes (79 words) - 21:48, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...722 bytes (79 words) - 21:49, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...713 bytes (79 words) - 21:50, 30 January 2017
- This example will save player's cash to a file 'PlayerCash.ini' when they leave the game. <code lang="squirrel"> ...1 KB (165 words) - 18:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...726 bytes (90 words) - 18:32, 30 January 2017
- This variable gets/sets the player skin. player.Skin ...1 KB (144 words) - 08:48, 26 April 2019
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...683 bytes (83 words) - 19:08, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...583 bytes (66 words) - 19:13, 30 January 2017
- This event is called when a player enters a Vehicle. <pre>onPlayerEnterVehicle( player, vehicle, door )</pre> ...756 bytes (96 words) - 22:21, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...735 bytes (85 words) - 19:07, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...711 bytes (86 words) - 19:08, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...612 bytes (69 words) - 19:16, 30 January 2017
- <source lang=squirrel> function onPlayerCommand ( player , cmd , text ) ...621 bytes (70 words) - 19:13, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...712 bytes (85 words) - 19:08, 30 January 2017
- <pre>Player.SetAlpha( int alpha, int fadeTime )</pre> '''> Player''' - The player instance. ...749 bytes (88 words) - 18:56, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...718 bytes (86 words) - 19:13, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...669 bytes (82 words) - 19:12, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...645 bytes (81 words) - 19:12, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...672 bytes (81 words) - 19:12, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...728 bytes (78 words) - 21:47, 30 January 2017
- The following example will check if the data value of the weapon, from player's hand, was edited. <source lang=squirrel> ...1 KB (127 words) - 22:06, 30 January 2017
- This function allows the server to inform the player, that He dropped the key and and the key works like a command. <pre>function onKeyUp( player, key )</pre> ...1 KB (182 words) - 20:03, 11 February 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...722 bytes (87 words) - 19:09, 30 January 2017
- <pre>function onPlayerCommand ( player, cmd , text ) if ( !text ) MessagePlayer("/lights (on/off)", player); ...695 bytes (82 words) - 22:03, 30 January 2017
- == Global Functions == === Script Functions === ...3 KB (324 words) - 08:18, 10 May 2018
- MessagePlayer( "table Accounts has -> " + result + " Fields!", player ); == Related Functions == ...542 bytes (65 words) - 18:28, 30 January 2017
- <pre>player.GiveWeapon( WeaponID, Ammo );</pre> '''> Player''' - The player instance. ...1 KB (156 words) - 18:48, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...620 bytes (75 words) - 19:13, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...571 bytes (64 words) - 18:00, 30 January 2017
- function onSphereEntered( player, Sphere ) ...ere Pos X: "+ Sphere.Pos.x +", Y: "+ Sphere.Pos.y +", Z: "+ Sphere.Pos.z , player ); ...441 bytes (56 words) - 16:59, 15 March 2016
- This function checks if a checkpoint is only streamed for a Player or for everyone. <source lang="squirrel"> ...773 bytes (85 words) - 18:40, 3 August 2017
- This event is called when a player tries to enter a vehicle <pre>onPlayerEnteringVehicle( player, vehicle, door )</pre> ...771 bytes (98 words) - 22:21, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...732 bytes (89 words) - 19:08, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...726 bytes (87 words) - 19:08, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...790 bytes (100 words) - 18:36, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...724 bytes (89 words) - 19:08, 30 January 2017
- function onPlayerCommand(player, cmd, text) MessagePlayer("The pickup is visible now",player); ...786 bytes (94 words) - 18:37, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...758 bytes (88 words) - 21:50, 30 January 2017
- The following example will unbind a key for a player <source lang=squirrel> ...883 bytes (100 words) - 18:06, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...685 bytes (84 words) - 19:09, 30 January 2017
- <source lang="squirrel"> Player.Admin; ...644 bytes (77 words) - 10:59, 26 April 2019
- <source lang=squirrel> function onPlayerEnterVehicle( player, vehicle, door ) ...732 bytes (82 words) - 18:05, 30 January 2017
- This function is used to get the ammo of the weapon that player is carrying at the entered slot ID. <pre>Player.GetAmmoAtSlot( slot );</pre> ...2 KB (202 words) - 14:09, 2 October 2018
- <pre>function onClientScriptData(player)</pre> * '''player''' - Player who is spawning. ...763 bytes (78 words) - 13:49, 14 March 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ); ...760 bytes (85 words) - 17:19, 25 September 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...774 bytes (88 words) - 17:58, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...728 bytes (84 words) - 21:49, 30 January 2017
- <source lang=squirrel> if ( !text ) MessagePlayer( "Use /sethour <Hour>.", player ); ...635 bytes (77 words) - 08:45, 26 April 2019
- <source lang=squirrel>escapeSQLString( string query )</source> <source lang=squirrel>function onPlayerJoin( player ) ...704 bytes (88 words) - 19:01, 30 January 2017
- This function will toggle the ability of a player to driveby <pre>Player.CanDriveby = toggle;</pre> ...1 KB (117 words) - 18:47, 30 January 2017
- <source lang=squirrel> if ( !text ) MessagePlayer( "Use /setmin <Minutes>.", player ); ...651 bytes (76 words) - 08:41, 26 April 2019
- <source lang=squirrel> function onPlayerCommand ( player , cmd , text ) ...752 bytes (85 words) - 21:48, 30 January 2017
- <source lang=squirrel> if ( !text ) MessagePlayer( "Use /setgravity <Gravity>.", player ); ...675 bytes (78 words) - 08:37, 26 April 2019
- <pre>function onPlayerCommand( player, cmd, text ) MessagePlayer("Gate moved!", player ); ...785 bytes (90 words) - 18:33, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, parameters ); ...773 bytes (87 words) - 19:13, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player, cmd, text) ...585 bytes (72 words) - 18:19, 30 January 2017
- <source lang=squirrel> function onPlayerEnterVehicle( player, vehicle, door ) ...695 bytes (82 words) - 18:06, 30 January 2017
- <pre>player.IsOnRadar = toggle</pre> <pre>function onPlayerCommand( player, cmd, text ) ...731 bytes (84 words) - 18:52, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player,cmd,text) ...667 bytes (84 words) - 18:05, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...660 bytes (61 words) - 18:06, 30 January 2017
- function onSphereEntered( player, Sphere ) MessagePlayer( "Sphere's Owner: "+ Sphere.Owner, player ); ...410 bytes (48 words) - 17:00, 15 March 2016
- player.Frozen = true; player.Frozen = false;</pre> ...1 KB (143 words) - 18:48, 30 January 2017
- <source lang=squirrel>function onPlayerCommand(player, command, arguments) mysql_query( vcmpdb, "UPDATE accounts SET cash = '0' WHERE name = '"+player.Name+"'"); ...677 bytes (89 words) - 18:28, 30 January 2017
- * ''[[Scripting/Squirrel/Functions/Vector|Vector]]'' '''pos''' - The position of the marker to be created * ''[[Scripting/Squirrel/Functions/cRGB|cRGB]]'' '''color''' - The marker's color ...915 bytes (117 words) - 18:06, 30 January 2017
- Send player to another server. <source lang=squirrel> ...545 bytes (57 words) - 10:53, 26 April 2019
- <source lang=squirrel> if ( !text ) MessagePlayer( "Use /waterlevel <Water Level>", player ); ...699 bytes (82 words) - 08:30, 26 April 2019
- This function will toggle the ability of a player to attack other players <pre>Player.CanAttack = toggle;</pre> ...1 KB (139 words) - 18:47, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, command, arguments ) ...883 bytes (102 words) - 17:58, 30 January 2017
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...690 bytes (79 words) - 19:14, 30 January 2017
- *[[Scripting/Squirrel/Functions/Vector|''Vector'']] '''pos''' - The checkpoint position <source lang="squirrel"> ...989 bytes (114 words) - 17:45, 3 August 2017
- <source lang="squirrel"> function onPlayerCommand(player, cmd, text) ...776 bytes (96 words) - 18:06, 30 January 2017
- This function will hide the textdraw for a specific player. <pre>Textdraw.HideFromPlayer(player);</pre> ...1 KB (181 words) - 11:27, 12 March 2016
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ); ...725 bytes (81 words) - 22:06, 30 January 2017
- <source lang=squirrel> function onPlayerWeaponChange( player, oldWep, newWep ) ...722 bytes (87 words) - 18:05, 30 January 2017
- This function is triggered when a player changes his action or we can say move!. ( not animation ). <pre>function onPlayerActionChange( player, oldAction, newAction )</pre> ...2 KB (233 words) - 22:17, 30 January 2017
- <pre>function onPlayerJoin( player ) local pName = mysql_escape_string( handler, player.Name ); ...770 bytes (100 words) - 18:27, 30 January 2017
- function onSphereEntered( player, Sphere ) ...ePlayer( "you have entered in a Sphere, Sphere's Radius: "+ Sphere.Radius, player ); ...403 bytes (47 words) - 16:59, 15 March 2016
- function onSphereEntered( player, Sphere ) ...agePlayer( "you have entered in a Sphere, Sphere's World: "+ Sphere.World, player ); ...398 bytes (47 words) - 16:57, 15 March 2016
- function onSphereEntered( player, Sphere ) MessagePlayer( "you have entered in a Sphere, Sphere's ID "+ Sphere.ID, player ); ...385 bytes (47 words) - 17:00, 15 March 2016
- <source lang=squirrel> function onPlayerCommand( player, cmd, text ) ...663 bytes (74 words) - 21:48, 30 January 2017
- This is called when a player moves on foot or as a passenger. <pre>function onPlayerMove( player, oldX, oldY, oldZ, newX, newY, newZ )</pre> ...991 bytes (143 words) - 22:15, 30 January 2017
- <source lang=squirrel> MessagePlayer( "Game time rate is: " + GetTimeRate(), player ); ...492 bytes (56 words) - 17:28, 26 April 2019
- <source lang=squirrel> function onPlayerCommand(player, cmd, text){ ...1 KB (135 words) - 06:06, 2 May 2019
- This is called when a player disconnects from the server. <pre>function onPlayerPart( player, reason )</pre> ...2 KB (237 words) - 22:14, 30 January 2017
- <source lang="squirrel"> function onPlayerCommand( player, cmd, text ) ...864 bytes (101 words) - 18:01, 30 January 2017
- <source lang="squirrel">function onPlayerCommand( player, cmd, passed ) player.Angle = Quaternion(0, 0, 0, 0); ...664 bytes (75 words) - 18:01, 30 January 2017
- <source lang=squirrel> function onPlayerCommand(player, cmd, text) ...696 bytes (88 words) - 18:19, 30 January 2017
- The following example will check if the data value of the weapon, from player's hand, was edited. <source lang=squirrel> ...2 KB (178 words) - 22:06, 30 January 2017