Random spawns?
#2

pawn Код:
new Float:RandomSpawn[][4] = {
    {coordx, coordy, coordz, coorda},
    {coordx, coordy, coordz, coorda},
    {coordx, coordy, coordz, coorda}
};

public OnPlayerSpawn(playerid)
{
    new rands = random(sizeof(RandomSpawn));
    SetPlayerPos(playerid, RandomSpawn[rands][0], RandomSpawn[rands][1], RandomSpawn[rands][2]);
    SetPlayerFacingAngle(playerid, RandomSpawn[rands][3]);
    return 1;
}
Reply


Messages In This Thread
Random spawns? - by Legit_V20 - 21.01.2011, 11:51
Re: Random spawns? - by Sascha - 21.01.2011, 11:55
Re: Random spawns? - by HyperZ - 21.01.2011, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)