14.04.2015, 20:31
try this:
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(GetPlayerAmmo(playerid) == 1)
{
GivePlayerGun(playerid, weaponid, 1);
}
return 1;
}