Teleport to 4 Position
#7

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;
}
OR

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;
}
Reply


Messages In This Thread
Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 16:49
Re: Teleport to 4 Position - by geerdinho8 - 28.02.2010, 17:01
Re: Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 17:07
Re: Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 17:34
Re: Teleport to 4 Position - by CaHbKo - 28.02.2010, 17:38
Re: Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 17:44
Re: Teleport to 4 Position - by CaHbKo - 28.02.2010, 17:49
Re: Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 17:55
Re: Teleport to 4 Position - by Igdirli 76 - 28.02.2010, 19:32
Re: Teleport to 4 Position - by -Rebel Son- - 28.02.2010, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)