14.06.2013, 17:36
To be honest anticheats must be structured very carefully and as Alternative said,you must assign a variable when the player spawns.
Also I noticed something..
GetPlayerWeapon(i) >= 35 && GetPlayerWeapon(i) <= 39
Umm,why big or equal to 35? This can be the reason... If I were you,I would use it like,
GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 39 etc. etc., this means,if the weapon is 35 OR 39also add the other weapons you forbidden one by one,instead of checking a range of weapons.
Also I noticed something..
GetPlayerWeapon(i) >= 35 && GetPlayerWeapon(i) <= 39
Umm,why big or equal to 35? This can be the reason... If I were you,I would use it like,
GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 39 etc. etc., this means,if the weapon is 35 OR 39also add the other weapons you forbidden one by one,instead of checking a range of weapons.