I am. I'm wanting people to only be able to choose certain upgrades. This is currently what I have but it's still allowing me to choose the weapon I'm trying to restrict.
Code:
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("LMG/Skulk Combat","1.0","v3xtra")
}
public client_impulse(id,impulse) {
if(impulse == 118 || 39 || 38 || 126 || 114 || 115 || 116 || 117 || 64 || 65 || 66 || 37 || 61 || 11){
client_print(id,print_chat, "Sorry but you cannot buy that upgrade!")
return PLUGIN_HANDLED
}
}
It seems that 118 doesn't work, but everything else does.
__________________