SA-MP Forums Archive
/dm ID - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /dm ID (/showthread.php?tid=557632)



/dm ID - Flokx - 14.01.2015

How to make a dm where people can use /dm ID

Like For DM ID 1, I want Deagle, Shotgun and lvpd interior as spawn.
Please help with this, +rep


Re: /dm ID - HY - 14.01.2015

pawn Код:
CMD:dm(playerid, params[])
{
    new ID;
    if(sscanf(params, "i", ID)) return SendClientMessage(playerid, -1, "USAGE: /DM [ID]");
    if(ID > 10) return SendClientMessage(playerid, -1, "Invalid ID. [0-10]");
    if(ID == 1)
    {
        GivePlayerWeapon(playerid, 24, 500);
        SetPlayerInterior(playerid, LVPD Interior);
    }
    return 1;
}