Raised This Month: $ Target: $400
 0% 

Whats wrong with this code ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-04-2016 , 10:34   Whats wrong with this code ?
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""



public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}


public 
client_putinserver(id)
{
    if(!
is_user_connected(id))
    {
        return 
PLUGIN_HANDLED
    
}
    
    new 
time get_user_time(id,1);
    if(
time/60 240)
    {
        return 
PLUGIN_HANDLED
    

    
    if(
time/60 == 30)
    {
        
cs_set_user_money(id,2000)
        
    }
    else if(
time/60 == 60)
    {
        
cs_set_user_money(id,6000)
        
    }
    else if(
time/60 == 120)
    {
        
cs_set_user_money(id,4000)
        
    }
    else if(
time/60 == 180)
    {
        
cs_set_user_money(id,3000)
        
    }
    else 
    { 
        
cs_set_user_money(id,2000
    
    }
    
     

it's not working properly after playing 5 min it's giving me 4000 money

Last edited by Awesome_man; 05-04-2016 at 10:34.
Awesome_man 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 18:35.


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