Raised This Month: $ Target: $400
 0% 

amx_tempgod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 08-21-2006 , 10:23   Re: amx_tempgod
Reply With Quote #9

w00t! found out how to make it ka_ maps only

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "TempGod" #define VERSION "1.0" #define AUTHOR "TheLinx" public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)         register_cvar("tempgod_onoroff","1")     register_cvar("tempgod_version",VERSION)         register_clcmd("say /god","do_god",ADMIN_SLAY,"Go into tempgodmode")     register_clcmd("say /ungod","undo_god",ADMIN_SLAY,"Go out of tempgodmode") } public do_god(id) {     new mapname[32]     get_mapname(mapname,31)         if(contain(mapname,"ka_"))     {         if(get_cvar_num("tempgod_onoroff") == 1)     {         client_print(id,print_chat,"[TempGod] You have entered TempGod mode")         set_user_godmode(id,1)         new red = 255         new green = 255         new blue = 43         set_user_rendering(id,kRenderFxGlowShell,red,green,blue,kRenderTransAlpha,255)         new name[33]         get_user_name(id,name,32)         client_cmd(id,"unbindall")         client_cmd(id,"bind mouse1 ^"say /ungod; name %s^"",name)         client_cmd(id,"name ^"[AFK] %s^"", name)     }     else if(get_cvar_num("tempgod_onoroff") == 0)     {         return PLUGIN_HANDLED;     }        } } public undo_god(id) {     if(get_cvar_num("tempgod_onoroff") == 1)     {         client_print(id,print_chat,"[TempGod] You have left TempGod mode")         set_user_godmode(id)         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0)         client_cmd(id,"unbindall")         client_cmd(id,"exec config.cfg")         client_cmd(id,"exec userconfig.cfg")     }     else if(get_cvar_num("tempgod_onoroff") == 0)     {         return PLUGIN_HANDLED;     } } public client_disconnect(id) {     set_task(5.0,"undo_god",id) }


dont worry, be happy
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
 


Thread Tools
Display Modes

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 23:06.


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