07.07.2009, 13:05
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerRandomSpawn(playerid);
return 1;
}
Код:
public SetPlayerRandomspawn(playerid)
{
// load cords etc
return 1;
}
OR you can put simple function without call back
put this in OnPlayerSpawn
Код:
new id = sizeof(gRandomPlayerSpawns); // or you can just put 24 etc, how much you have SetPlayerPos(playerid,gRandomPlayerSpawns[id][0],gRandomPlayerSpawns[id][1],gRandomPlayerSpawns[id][2]}

