Detecting ammo.
#1

I have this code, and I can't understand how to script, that if player has more than 1 bullet, it won't let him choose the following thing from the inventory.
pawn Код:
if(itemid == ITEM_COLT45CLIP) {
        RemoveItemFromPlayerInventory(playerid, ITEM_COLT45CLIP, 1);

        GivePlayerWeapon(playerid,22, 17);
        ApplyAnimationEx(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);

        SendClientMessage(playerid, COLOR_GREEN, "You have taken a COLT45 clip from your inventory & reloaded your weapon.");
        return 1;
    }
I can't understand how to use GetPlayerWeaponData, etc.
Reply


Messages In This Thread
Detecting ammo. - by Darnell - 30.08.2011, 15:09
Re: Detecting ammo. - by [MWR]Blood - 30.08.2011, 15:13
Re: Detecting ammo. - by AndreT - 30.08.2011, 15:13
Re: Detecting ammo. - by Kar - 30.08.2011, 15:16
Re: Detecting ammo. - by Darnell - 30.08.2011, 15:27

Forum Jump:


Users browsing this thread: 2 Guest(s)