02.04.2011, 20:30
pawn Код:
public OnPlayerSpawn(playerid)
{
new classid = GetPlayerSkin(playerid);
if(classid == 0)
{
switch(random(6))
{
case 0: SetPlayerPos(playerid,x,y,z);
case 1: SetPlayerPos(playerid,x,y,z);
case 2: SetPlayerPos(playerid,x,y,z);
case 3: SetPlayerPos(playerid,x,y,z);
case 4: SetPlayerPos(playerid,x,y,z);
case 5: SetPlayerPos(playerid,x,y,z);
}
}
else if(classid == 1)
{
switch(random(6))
{
case 0: SetPlayerPos(playerid,x,y,z);
case 1: SetPlayerPos(playerid,x,y,z);
case 2: SetPlayerPos(playerid,x,y,z);
case 3: SetPlayerPos(playerid,x,y,z);
case 4: SetPlayerPos(playerid,x,y,z);
case 5: SetPlayerPos(playerid,x,y,z);
}
}
return 1;
}