Search results
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
- <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) ...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) ...672 bytes (75 words) - 19:16, 30 January 2017
- <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