Heres one way
Code:
#include <amxmodx>
#include <engine>
new PLUGIN_NAME[] = "Invisible"
new PLUGIN_VERSION[] = "1.0"
new PLUGIN_AUTHOR[] = "Cheap_Suit"
new bool:InvisibleGuy[33]
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("say /invisible", "Invisible_Function")
}
public Invisible_Function(id)
{
switch(InvisibleGuy[id])
{
case true:
{
InvisibleGuy[id] = false
set_entity_visibility(id, 1)
client_print(id, print_chat, "You are not invisible")
}
case false:
{
InvisibleGuy[id] = true
set_entity_visibility(id, 0)
client_print(id, print_chat, "You are invisible")
}
}
return PLUGIN_HANDLED
}
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.