Scripting/Squirrel/Functions/Players/SpawnPos
From VC-MP Wiki
Syntax
bool player.SpawnPos
Example
You can check where a player (plr) to spawn.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "checkspawn" ) { local a = split( text, " " ); local plr = null; if ( !IsNum( a[0] ) ) plr = FindPlayer( a[0] ); else plr = FindPlayer( a[0].tointeger() ); if ( !plr ) MessagePlayer( "Error: Player " + text + " is currently offline.", player ); else Message( plr + "Spawn Location:( " + plr.SpawnPos + " )"); } }
