25.07.2010, 09:37
Here's another simple way of randoming spawns :
anyways, nice tut =)
pawn Code:
switch(random(4))
{
case 0:
{
SetPlayerPos(playerid,3922.5779,-1608.7214,1441.8087);
SendClientMessage(playerid,COLOR_RED,"You spawned at Sky Road (/skroad)");
}
case 1:
{
SetPlayerPos(playerid, 284.668945, 2470.728515, 16.474884);
SendClientMessage(playerid,COLOR_RED,"You spawned at aa. Old Airport (/aa)");
}
case 2:
{
SetPlayerPos(playerid,1549.9720,-1675.3169,15.2003);
SendClientMessage(playerid,COLOR_RED,"You spawned at San Fierro (/sf)");
}
case 3:
{
SetPlayerPos(playerid,1549.9720,-1675.3169,15.2003);
SendClientMessage(playerid,COLOR_RED,"You spawned at Los Santos (/ls)");
}
}