16.02.2017, 23:47
Try
This is a example script ejecuted when a player have register data value City from register system.
PHP код:
public OnPlayerSpawn(playerid)
{
switch(Player[playerid][City])
{
case 0: { SetPlayerPos(playerid, Float:PosX, Float:PosY, Float:PosZ); } // Spawn In LS
case 1: { SetPlayerPos(playerid, Float:PosX, Float:PosY, Float:PosZ); } // Spawn In SF
case 2: { SetPlayerPos(playerid, Float:PosX, Float:PosY, Float:PosZ); } // Spawn In LV
default: { SetPlayerPos(playerid, Float:PosX, Float:PosY, Float:PosZ); } // For users Bugged or using hack
}
return 1;
}