28.04.2016, 17:28
Just simple add the code from OnPlayerSpawn to the command, like so;
I'm sure you can add the messages & checks to the command yourself.
pawn Код:
CMD:dm(playerid, params[]) {
new randomcoords = random(sizeof(DMSpawn));
SetPlayerPos(playerid, DMSpawn[randomcoords][0], DMSpawn[randomcoords][1], DMSpawn[randomcoords][2]);
return 1;
}