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