Raised This Month: $ Target: $400
 0% 

Invisibility


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Extremeone
Senior Member
Join Date: Jan 2005
Old 02-22-2005 , 13:32   Invisibility
Reply With Quote #1

I cant get this to work can anyone help?

Code:
#include <amxmodx> #include <fun> #include <amxmisc> new bool:spy[32] = false public plugin_init() {     register_plugin("AMX Spys","0.1","twistedeuphoria")     register_cvar("amx_autospy","1")     register_concmd("amx_spy","admin_makespy",ADMIN_BAN,"Make a player a spy.")     register_concmd("amx_unspy","admin_unmakespy",ADMIN_BAN,"Make a player normal.")     register_event("ResetHUD","makespy","b") } public client_putinserver(id) {     if((get_user_flags(id) && ADMIN_BAN) && (get_cvar_num("amx_autospy") == 1))     {         spy[id] = true         set_user_footsteps(id,1)         set_user_visibility(id, 0)          } } public client_disconnect(id) {     spy[id] = false } public admin_makespy(id) {     if(!get_user_flags(id) && ADMIN_BAN)         return PLUGIN_HANDLED     new target[32],tgtid     tgtid = cmd_target(id,target,2)     spy[tgtid] = true     set_user_footsteps(id,1)     set_user_visibility(id, 0)     return PLUGIN_HANDLED } public admin_unmakespy(id) {     if(!get_user_flags(id) && ADMIN_BAN)         return PLUGIN_HANDLED     new target[32],tgtid     tgtid = cmd_target(id,target,2)     spy[tgtid] = false     set_user_footsteps(id,0)     set_user_visibility(id, 1)     return PLUGIN_HANDLED } public makespy(id) {     if(spy[id] == true)     {         set_user_footsteps(id,1)         set_user_visibility(id, 0)     }     else     {         set_user_footsteps(id,0)         set_user_visibility(id, 1)     } }
Extremeone is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:09.


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