19.05.2009, 20:46
I need a command /dropgun
i need it to drop the gun i got in my hands..
i need it to drop the gun i got in my hands..
if(strcmp(cmd, "/dropweapon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new weapon;
new ammo;
ammo=GetPlayerAmmo(playerid);
weapon=GetPlayerWeapon(playerid);
if(ammo == 0) return true;
GivePlayerWeapon(playerid, weapon, -ammo);
}
return true;
}