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.UniqueID</pre> ...572 bytes (64 words) - 18:57, 30 January 2017
- This will return player Unique ID. <pre>string player.UniqueID2</pre> ...574 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