DM Arena help
#1

Hey guys i found this TUT about the DM's
Here
How can i make multy commands for DM Arena's ?
Like CMD:dm <1-10>
When i type /dm 1 going in DM Arena 1
/dm 2 Goin to DM arena 2
etc etc
i really need help
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)