How to make full weapons
#3

You will need ZCMD and sscanf.
pawn Код:
#define AMMO 50 // Set your ammo for every weapon

CMD:fullguns(playerid, params[])
{
    new giveplayerid;
    if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1 ,"/fullguns (player name/id)");
    GivePlayerWeapon(giveplayerid, 24, AMMO);
    GivePlayerWeapon(giveplayerid, 27, AMMO);
    GivePlayerWeapon(giveplayerid, 29, AMMO);
    GivePlayerWeapon(giveplayerid, 31, AMMO);
    GivePlayerWeapon(giveplayerid, 34, AMMO);
    return true;
}
EDIT: 1-2 second late.
Reply


Messages In This Thread
How to make full weapons - by BarFix - 25.09.2013, 13:57
Re: How to make full weapons - by park4bmx - 25.09.2013, 14:06
Re: How to make full weapons - by iZN - 25.09.2013, 14:06
Re: How to make full weapons - by BarFix - 25.09.2013, 14:11
Re: How to make full weapons - by BarFix - 25.09.2013, 15:43
Re: How to make full weapons - by Konstantinos - 25.09.2013, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)