Random Spawns?
#1

How do I make random spawns for a certain team?
Reply
#2

http://www.mediafire.com/?2ytoit18molf48k i dont know whoose work i it but it can help you a lot! Good Luck for th next period of your scripting
Reply
#3

Try this:
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;
}
You need explainations? Go here Random
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)