17.11.2017, 17:49
Hello all i have a gamemode i develop but im stuck with something.
I made players like they can only have 3 items on themselves at most. like Weaponslot1 weaponslot2 and weaponslot3.
When someone gets parachute, it occupies SGUN slot but here is the thing.
when someone uses it, it seems ammo goes down but not scriptwise because i am using OnPlayerWeaponShot like:
Also its same for parachute andsome other weapon types player can have too.
anyone has any idea?
I made players like they can only have 3 items on themselves at most. like Weaponslot1 weaponslot2 and weaponslot3.
When someone gets parachute, it occupies SGUN slot but here is the thing.
when someone uses it, it seems ammo goes down but not scriptwise because i am using OnPlayerWeaponShot like:
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { new GunID=GetPlayerWeapon(playerid); if(GunID==USER[playerid][GUN2]) { USER[playerid][AMMO2]--; } if(GunID==USER[playerid][GUN1]) { USER[playerid][AMMO1]--; } if(GunID==USER[playerid][SGUN]) { USER[playerid][SGUNAMMO]--; } wepcheat(playerid); return 1; }
anyone has any idea?