Raised This Month: $ Target: $400
 0% 

give award when x kills number.(frag)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AdogeN
Senior Member
Join Date: Feb 2007
Old 06-25-2008 , 03:03   Re: give award when x kills number.(frag)
Reply With Quote #1

Quote:
Originally Posted by fxfighter View Post
PHP Code:
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <fakemeta>
 
#if cellbits == 32
#define OFFSET_CSMONEY  115
#else
#define OFFSET_CSMONEY  140
#endif
 
 
public plugin_init()
{
    
register_plugin("Killmoney""1.0""fxfighter")
    
register_event("DeathMsg""Reward""a")
}
public 
Reward()
{
    new 
id read_data(1)
    if(!
id)return
    switch(
pev(id,pev_frags))
    {
        case 
50:fm_set_user_money(id,get_pdata_int(id,OFFSET_CSMONEY,5)+5000,1)
        case 
100:fm_set_user_money(id,get_pdata_int(id,OFFSET_CSMONEY,5)+10000,1)
        case 
150:fm_set_user_money(id,get_pdata_int(id,OFFSET_CSMONEY,5)+15000,1)
    }
}
//stock by XxAvalanchexX
stock fm_set_user_money(id,money,flash=1)
{
    
set_pdata_int(id,OFFSET_CSMONEY,money,5);
    
message_begin(MSG_ONE,get_user_msgid("Money"),{0,0,0},id);
    
write_long(money);
    
write_byte(flash);
    
message_end();

AdogeN is offline
Reply



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 19:45.


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