Raised This Month: $ Target: $400
 0% 

Fix plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 10-27-2011 , 17:35   Re: Fix plugin.
Reply With Quote #8

Check your modules.ini (cstrike module)

Try 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

Works perfectly.
__________________
kramesa 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