30.08.2011, 15:09
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.
I can't understand how to use GetPlayerWeaponData, etc.
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;
}