OnPlayerRequestSpawn: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "== Syntax == <pre>function onPlayerRequestSpawn( player )</pre> == Arguments == * ''Player'' '''player''' - The player tha...")
 
No edit summary
Line 5: Line 5:
== Arguments ==
== Arguments ==


* [[Scripting/Squirrel/Functions#Player_Functions|''Player'']] '''player''' - The player that uses command.
* [[Scripting/Squirrel/Functions#Player_Functions|''Player'']] '''player''' - The Pointer of the player.





Revision as of 11:50, 30 December 2015

Syntax

function onPlayerRequestSpawn( player )

Arguments

  • Player player - The Pointer of the player.


Example

function onPlayerRequestSpawn( player )
{
MssagePlayer( " please register by /register <password> to access the service", player );
}


Notes

The function MessagePlayer and call onPlayerRequestSpawn were used in this example. More info about them in corresponding pages.

Related Events