Why is the title 'bool' ? If you want bool(This is just an example not make anything if you are not finishing):
Code:
#include <amxmodx>
new bool:imbool[33];
public plugin_init() {
register_clcmd("say /bool", "OnOffBool")
}
public OnOffBool(id) {
imbool[id] = !imbool[id]
}
What plugin do? Plugin is set 'imbool' to true if bool false.If bool false, plugin sets bool true.Ofc, you can do someone like this:
Code:
#include <amxmodx>
#include <fun>
new bool:imbool[33];
public plugin_init() {
register_clcmd("say /bool", "OnOffBool")
register_clcmd("say /mynoclip", "Noclip")
}
public OnOffBool(id) {
imbool[id] = !imbool[id]
}
public Noclip(id) {
if(imbool[id]) {
set_user_noclip(id, 1)
}
if(!imbool[id]) { // this isn't necessarily, if you want to set user noclip 0, it's necessarily!
set_user_noclip(id, 0)
}
}