Raised This Month: $ Target: $400
 0% 

Fix plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 10-27-2011 , 12:39   Fix plugin.
Reply With Quote #1

Hi all, this plugin takes the money and gievs them on the next round but it doesn`t work correctly can someone fix it?

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

new iGetUserMoney[33], iRound;

public 
plugin_init()
{
    
register_plugin("Round Money Remove""1.0""kostov");
    
    
register_event("TextMsg""eGetMoney""a""2&#Game_w");
    
register_logevent("iNewRound"2"1=Round_Start");
    
register_logevent("iEndRound"2"1=Round_End");
}

public 
eGetMoney()
{
    new 
iPlayers[32], iNumiPlayer;
    
get_players(iPlayersiNum"ch");
    
    if(
iNum <= 1)
    {
        return 
PLUGIN_CONTINUE;
    }
    
    if(
iRound == 1)
    {
        return 
PLUGIN_CONTINUE;
    }
    
    for(new 
0iNumi++) 
    {
        
iPlayer iPlayers[i];
        
        
iGetUserMoney[iPlayer] == cs_get_user_money(iPlayer);
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
iEndRound()
{
    ++
iRound;
}

public 
iNewRound()
{
    new 
iPlayers[32], iNumiPlayer;
    
get_players(iPlayersiNum"ch");
    
    if(
iNum <= 1)
    {
        return 
PLUGIN_CONTINUE;
    }
    
    if(
iRound == 1)
    {
        return 
PLUGIN_CONTINUE;
    }
    
    for(new 
0iNumi++) 
    {
        
iPlayer iPlayers[i];
        
        
cs_set_user_money(iPlayeriGetUserMoney[iPlayer]);
    }
    
    return 
PLUGIN_CONTINUE;

Lolz0r 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 14:20.


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