Raised This Month: $ Target: $400
 0% 

Cashmod: normal ppl 40 cash, vips 60 cash HOW?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
majkan
Junior Member
Join Date: Dec 2009
Old 04-18-2011 , 17:17   Cashmod: normal ppl 40 cash, vips 60 cash HOW?
Reply With Quote #1

Hi

Im trying to do so those who bought VIP on my server gets 60 cash instead of 40 when the kill someone, and 80 cash instead of 60 for surviving a round.

The code looks like this now

Code:
                    if( g_Admin[killer] && g_iCash[killer] < 99938 )
                    {
                        g_iCash[killer] += 40;
        
                        formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
                    }
                    else
                    {
                        g_iCash[killer] += 40;
                        formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
                    }
                        //VIP Cash
                        if ( access( killer, ADMIN_LEVEL_C) )
                            g_iCash[killer] += 20;
                            formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 60 cash for killing^x04 %s", vic_name);
But when someone with access "C" kill someone they get 100 cash instead of 60, and when someone without access "C" kill someone they get 40 cash but it says they got 60 cash for killing the player.

Can anyone help me to fix this?
majkan is offline
 


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


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