Raised This Month: $ Target: $400
 0% 

starting money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SPT1
Senior Member
Join Date: Aug 2012
Old 12-14-2012 , 03:26   starting money
Reply With Quote #1

i need a plugin which will keep the money 16000 even if the players buy something every round...
i searched still didn't get
__________________
AMXMODX
SPT1 is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 12-14-2012 , 04:48   Re: starting money
Reply With Quote #2

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

public plugin_init() set_task(5.0,"some_task",.flags="b");

public 
some_task(){
    new 
maxplayers get_maxplayers();
    
    for (new 
0<= maxplayersi++)
    {
        if(!
is_user_connected(i))
            continue;

        
cs_set_user_money(i,16000);
    }

__________________

Last edited by simanovich; 12-14-2012 at 04:49.
simanovich is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 12-14-2012 , 06:40   Re: starting money
Reply With Quote #3

lol.
Bad code.
https://forums.alliedmods.net/showpo...&postcount=232

Last edited by guipatinador; 12-14-2012 at 06:43.
guipatinador is offline
Reply



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 13:47.


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