I have a few questions on scripting.
1) How would you stop someone from buyone a smoke gernade. What would be the command to deny permission. like
Code:
(weapon_restrict == 1) {
ns_has_weapon(id, CSW_SMOKEGRENADE, -1)
client_print(id,print_chat,"[AMXX] You are not allowed to purchase Smoke Gernades")
}
?
Also what should the value to setweapon = -1 be?
Code:
has_weapon ( index, weapon, [ setweapon = -1] )
Also (haha sorry) I know that things like
Generate the item variable but how is it broken down? Or what format is it in to generate the variable?