SpawnPlayer: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool spawnPlayer ( player player, float x, float y, float z, float rotation, int skin )             
bool spawnPlayer ( player thePlayer, element spawnpoint )             
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''thePlayer:''' the player to spawn
 
*'''spawnpoint:''' the spawnpoint element at which to spawn the player
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns ''true'' if the player was spawned successfully, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 08:15, 26 May 2006


This fake function is for use with blah & blah and does blahblahblabhalbhl

Syntax

bool spawnPlayer ( player thePlayer, element spawnpoint )             

Required Arguments

  • thePlayer: the player to spawn
  • spawnpoint: the spawnpoint element at which to spawn the player

Returns

Returns true if the player was spawned successfully, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Template:FunctionArea Functions