10.05.2015, 22:17
BASIC example:
Not tested; concept only.
pawn Код:
new Float:DMStadiumLocations[][3] = {
{x, y, z}, // Replace with coordinates
{x, y, z}, // Replace with coordinates
{x, y, z} // Replace with coordinates
};
CMD:dm(playerid, params[])
{
new dmID = strval(params);
if(dmID < 1 || dmID > sizeof(DMStadiumLocations)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /dm [1-3]");
SetPlayerPos(playerid, DMStadiumLocations[dmID-1][0], DMStadiumLocations[dmID-1][1], DMStadiumLocations[dmID-1][2]);
}