[Solved] More random spawns
#7

Okay, if you want it to have other random locations, that are not in your command, you have to make new arrays with the other positions.
pawn Код:
if(strcmp(cmdtext, "/othercommand", true) == 0) {
new rand = random(sizeof(gMoreRandomPlayerSpawns));
SetPlayerPos(playerid, gMoreRandomPlayerSpawns[rand][0], gMoreRandomPlayerSpawns[rand][1], gMoreRandomPlayerSpawns[rand][2]);
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/othercommand2", true) == 0) {
new rand = random(sizeof(gMoreRandomPlayerSpawns2));
SetPlayerPos(playerid, gMoreRandomPlayerSpawns2[rand][0], gMoreRandomPlayerSpawns2[rand][1], gMoreRandomPlayerSpawns2[rand][2]);
return 1;
}
Ect..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)