22.09.2009, 14:15
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.
Ect..
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;
}

