Raised This Month: $ Target: $400
 0% 

give money at some interval


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
am_amx
Senior Member
Join Date: Jul 2010
Location: here
Old 10-23-2010 , 03:32   Re: give money at some interval
Reply With Quote #3

Quote:
Originally Posted by SaM.ThE.MaN View Post
Did you try using set_task?
thanx will try it

i'm getting money only once why?

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

new MONEY

public 
plugin_init() 

    
register_plugin("round_money","0.7","SweatyBanana"
     
    
MONEY register_cvar("round_money","16000"
     
    
/* Register LANG file */ 
    //register_dictionary("rmlang.txt") 
     //register_logevent("new_round", 2, "1=Round_Start") 
     
set_task(40.0,"new_round",2,"b");

public 
new_round() 

    new 
players[32], playerCountiplayerpMoney
    
pMoney get_pcvar_num(MONEY
     
    
get_players(players,playerCount); 
     
    for(
i=0;i<playerCount;i++) 
    { 
        
player players[i]; 
        if(
cs_get_user_money(player) < pMoney
        { 
            
cs_set_user_money(playerpMoney); 
            
//client_print(player,print_chat,"%L",LANG_PLAYER,"MONEY_AMOUNT",pMoney) 
        

    }  


Last edited by am_amx; 10-23-2010 at 05:08.
am_amx 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 10:26.


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