AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to write a admin everytime 16000$ amxx ? (https://forums.alliedmods.net/showthread.php?t=82854)

Tyler.H13 12-31-2008 04:28

How to write a admin everytime 16000$ amxx ?
 
Who can teach me? I see everyone 16000$ amxx , But have not admin everytime admin $16000$ amxx

SnoW 12-31-2008 04:35

Re: How to write a admin everytime 16000$ amxx ?
 
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



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

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