11.07.2016, 18:36
Try something like this:
This will make it easier if you wish to add more weapons along the way.
PHP код:
new weapon[6][] = {{25},{27},{29},{30},{31},{33},{34}};
CheckWeaps(playerid) {
for(new i = 0; i < 7, i++); {
if(PlayerHasWeapon(playerid, weapon[i])) return true;
}
return false;
}
if(CheckWeaps(playerid)) {
// your code here
}