Raised This Month: $ Target: $400
 0% 

pulling out the knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MC-Olivenoel
Member
Join Date: Oct 2004
Old 10-19-2004 , 05:52  
Reply With Quote #5

hi

what is that "get_user_god(1)" ?? u want to know if user 1 has god ??


Code:
/* Hey i made this plugin for admins only. Also i'm pretty new to scripting so don't yell at me! */ #include <amxmodx> #include <amxmisc> #include <fun> public plugin_init(){     register_plugin("Scary knife","1.0","Carl/svendude")     register_event("CurWeapon", "event_CurWeapon", "be", "2=29") } public event_CurWeapon(id) {     if ((get_user_flags(id)&ADMIN_BAN)) {         new isShown = read_data(1)         if (isShown) {             set_user_godmode(id, 0)         } else {             set_user_godmode(id)         }     }     return PLUGIN_HANDLED }
i have not testet it ...

i think u dont need

register_concmd("amx_knife1","cmdknife",ADMIN _BAN)
---

do u want to turn it on/off ???
MC-Olivenoel 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 17:10.


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