28.02.2010, 17:49
pawn Код:
new Float:Spawn1X = 657.95;
new Float:Spawn1Y = 2105.79
new Float:Spawn1Z = 60.37;
public OnPlayerSpawn(playerid)
{
new rand = random(4); //rand can have value from 0 to 3
if(rand == 0) SetPlayerPos(playerid, Spawn1X, Spawn1Y, Spawn1Z);
if(rand == 1) SetPlayerPos(playerid, other coords);
if(rand == 2) SetPlayerPos(playerid, other coords);
if(rand == 3) SetPlayerPos(playerid, other coords);
return 1;
}
pawn Код:
//delete those "new"
public OnPlayerSpawn(playerid)
{
new rand = random(4); //rand can have value from 0 to 3
if(rand == 0) SetPlayerPos(playerid, 657.95, 2105.79, 60.37);
if(rand == 1) SetPlayerPos(playerid, other coords);
if(rand == 2) SetPlayerPos(playerid, other coords);
if(rand == 3) SetPlayerPos(playerid, other coords);
return 1;
}