Raised This Month: $ Target: $400
 0% 

[REQ] limit max money below $16000


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-30-2012 , 02:07   Re: [REQ] limit max money below $16000
Reply With Quote #10

Quote:
Originally Posted by NucL3ra View Post
Use 'Player Spawn'

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

new SetMoney

public plugin_init() 
{
    
register_plugin("Set money""author""version")

    
SetMoney register_cvar("amx_setmoney""4500")

    
RegisterHam(Ham_Spawn"player""start"1)  

}
public 
start() 
{
    new 
Players[32], alivePlayers;
    
get_players(PlayersalivePlayers"ach")
    for(new 
i=0alivePlayersi++) 
    {
        
cs_set_user_money(Players[i],get_pcvar_num(SetMoney))
    }

This would give every player 4500 when a player spawns ... , why are you even using a loop there ....
EpicMonkey 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 00:26.


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