09.04.2011, 12:35
How can i create Random spawn on 1 player like 1st is Medic he will spawn in random places and 2nd Medic will spawn in other places...?
//top of mode
new Float:MedicSpawns[4][3] = {
{COORDX,COORDY,COORDZ},
{COORDX,COORDY,COORDZ},
{COORDX,COORDY,COORDZ},
{COORDX,COORDY,COORDZ}
};
//in onplayerspawn
new rand;
rand = random(sizeof(MedicSpawns));
SetPlayerPos(playerid, MedicSpawns[rand][0], MedicSpawns[rand][1], MedicSpawns[rand][2]);