Player Spawning
#2

Try

PHP код:
public OnPlayerSpawn(playerid)
{
    switch(
Player[playerid][City])
    {
         case 
0: { SetPlayerPos(playeridFloat:PosXFloat:PosYFloat:PosZ); } // Spawn In LS
         
case 1: { SetPlayerPos(playeridFloat:PosXFloat:PosYFloat:PosZ); } // Spawn In SF
         
case 2: { SetPlayerPos(playeridFloat:PosXFloat:PosYFloat:PosZ); } // Spawn In LV
         
default: { SetPlayerPos(playeridFloat:PosXFloat:PosYFloat:PosZ); } // For users Bugged or using hack
    
}
    return 
1;

This is a example script ejecuted when a player have register data value City from register system.
Reply


Messages In This Thread
Player Spawning - by STONEGOLD - 16.02.2017, 23:28
Respuesta: Player Spawning - by Eloy - 16.02.2017, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)