02.09.2013, 17:32
well i made a anticheat and i want that when the player lost his weapon by lost all the ammo he gets the variable off but that isnt hapening. every weapon i create is getting the variable and the script see the weapon as cheated.
the code:
if( GetPlayerWeaponState( playerid ) == WEAPONSTATE_NO_BULLETS )
{
new weap = GetPlayerWeapon(playerid);
Weapon[playerid][weap] = false;
return 1;
}
i put that in onplayerupdate.
sorry for my bad english
the code:
if( GetPlayerWeaponState( playerid ) == WEAPONSTATE_NO_BULLETS )
{
new weap = GetPlayerWeapon(playerid);
Weapon[playerid][weap] = false;
return 1;
}
i put that in onplayerupdate.
sorry for my bad english