View Single Post
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-15-2014 , 02:27   Re: Round Start Money (colored)
Reply With Quote #26

https://forums.alliedmods.net/showpo...3&postcount=11

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


new MONEY

public 
plugin_init() 

    
register_plugin("round_money","1.2","popeye10"
     
    
MONEY register_cvar("round_money","16000"
     
    
register_logevent("new_round"2"1=Round_Start"
     
    
register_dictionary_colored"round_money.txt" 


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_color(player,RED"%L"LANG_PLAYER"MONEY_AMOUNT"pMoney
        } 
    }  

__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline