Raised This Month: $ Target: $400
 0% 

Will this work? Set money on round end plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-27-2018 , 01:51   Re: Will this work? Set money on round end plugin
Reply With Quote #5

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

public plugin_init()
{
    
register_plugin("Round End Money""1.0""DiGiTaL")
    
    
register_event"SendAudio","event_twin","a","2=%!MRAD_terwin");
    
register_event"SendAudio","event_ctwin","a","2=%!MRAD_ctwin");
}

public 
event_ctwin() WinnerTeam(2)
public 
event_twin() WinnerTeam(1)

public 
WinnerTeam(teamWon)
{
    new 
players[32], num
    get_players
(playersnum"b")
    for(new 
inumi++)
    {
        
players[i]
        if(
get_user_team(x) == teamWon && cs_get_user_money(x) < 800
            
cs_set_user_money(x800)
    }


Last edited by instinctpt1; 06-27-2018 at 05:10. Reason: updated
instinctpt1 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:27.


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