21.05.2010, 22:16
dcmd_getgun(playerid, params[])
{
new Weapon, Ammo;
if(sscanf(params, "dd", Weapon, Ammo)) return SendClientMessage(playerid, COLOR_GREEN, "Usage: /getgun (weapon id) (bullets)");
if(!IsValidWeapon(Weapon)) return SendClientMessage(playerid, COLOR_RED, "Invalid Weapon ID.");
GivePlayerWeapon(playerid, Weapon, Ammo);
return 1;
}
How do I remove /getgun 38 and 37?
{
new Weapon, Ammo;
if(sscanf(params, "dd", Weapon, Ammo)) return SendClientMessage(playerid, COLOR_GREEN, "Usage: /getgun (weapon id) (bullets)");
if(!IsValidWeapon(Weapon)) return SendClientMessage(playerid, COLOR_RED, "Invalid Weapon ID.");
GivePlayerWeapon(playerid, Weapon, Ammo);
return 1;
}
How do I remove /getgun 38 and 37?