DM Arena help
#2

BASIC example:

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]);
}
Not tested; concept only.
Reply


Messages In This Thread
DM Arena help - by Toxik - 10.05.2015, 20:24
Re: DM Arena help - by MP2 - 10.05.2015, 22:17

Forum Jump:


Users browsing this thread: 1 Guest(s)