AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   making users invisible. (https://forums.alliedmods.net/showthread.php?t=21932)

ng1200 12-14-2005 03:45

making users invisible.
 
hi,
i need help with making a script that makes users invisible.
i only need the command that does that.
thanks,
CBM

Cheap_Suit 12-14-2005 03:55

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 }

ng1200 12-14-2005 04:08

thanks!!!
fast reply too :D


All times are GMT -4. The time now is 15:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.