1 more help
#1

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...?
Reply
#2

pawn Код:
//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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)