Gun system dcmd
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(gun, 3, cmdtext);
    return 1;
}

dcmd_gun(playerid, params[])
{
    new gunid, str[128];
    if(sscanf(params, "d", gunid)) return SendClientMessage(playerid, Yellow, "USAGE: /gun <id> (24-34)");
    if(gunid < 24 || gunid > 34) return SendClientMessage(playerid, Yellow, "ERROR! Wrong gun ID! (24-34)");
    format(str, 128, "You bought an gun! (ID: %d)", gunid);
    SendClientMessage(playerid, Green, str);
    GivePlayerWeapon(playerid, gunid, 1500);
    return 1;
}
It are all the gun ID's xD - 24 - 34
Reply


Messages In This Thread
Gun system dcmd - by xir - 06.01.2011, 18:43
Re: Gun system dcmd - by Kwarde - 06.01.2011, 18:45
Re: Gun system dcmd - by xir - 06.01.2011, 18:47
Re: Gun system dcmd - by Kwarde - 06.01.2011, 18:53
Re: Gun system dcmd - by xir - 06.01.2011, 18:57
Re: Gun system dcmd - by Kwarde - 06.01.2011, 19:01
Re: Gun system dcmd - by bartje01 - 06.01.2011, 19:08
Re: Gun system dcmd - by Kwarde - 06.01.2011, 19:09
Re: Gun system dcmd - by Kyle_Olsen - 06.01.2011, 21:34
Re: Gun system dcmd - by Kwarde - 07.01.2011, 04:33

Forum Jump:


Users browsing this thread: 1 Guest(s)