Raised This Month: $ Target: $400
 0% 

How to write a admin everytime 16000$ amxx ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-31-2008 , 04:35   Re: How to write a admin everytime 16000$ amxx ?
Reply With Quote #2

Then it would be nice if you could add the code what to edit (if you have seen it to all players), also there is couple of stickyed posts for changing plugin's admin thingys...
Code:
#include <amxmodx> 
#include <fakemeta> 

#define PLUGIN "1337Money" 
#define AUTHOR "ConnorMcLeod" 
#define VERSION "0.0.1" 

#define OFFSET_CSMONEY            115 

public plugin_init() 
{ 
    register_plugin(PLUGIN, VERSION, AUTHOR) 

    register_message( get_user_msgid("Money") , "Message_Money" ) 
} 

public Message_Money(iMsgId, MSG_DEST, id) 
{ 
    if(is_user_admin(id))
    {
    set_msg_arg_int(1, ARG_LONG, 1337) 
    set_pdata_int(id, OFFSET_CSMONEY, 16000) 
    }
}
If you want specific admin acess:
Code:
if(get_user_flags(id) & ADMIN_BAN)
     //code
SnoW is offline
Send a message via MSN to SnoW
 



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 09:11.


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