12.02.2018, 11:33
I won't read that it isn't needed you obviously didn't understand what i said but i'll try to make it more simple, you did this:
okay? that's a hook for GivePlayerWeapon to avoid weapon cheats, but GivePlayerWeapon has 3 params and what you just used is 2 (playerid and weaponid) so you forgot to add another spot for ammo so it should look like this:
Код:
GivePlayerValidWeapon(giveplayerid, PlayerInfo[giveplayerid][pJailedWeapons][x]);
Код:
GivePlayerValidWeapon(giveplayerid, PlayerInfo[giveplayerid][pJailedWeapons][x], ammo_param);