Raised This Month: $ Target: $400
 0% 

Module: CSX Extended 2.0.1.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 02-26-2014 , 11:55   Re: Module: CSX Extended (v1.0.1)
Reply With Quote #11

A Simple but efficient reset_user_stats (Explicitly calling Stats() constructor)
PHP Code:
static cell AMX_NATIVE_CALL reset_user_stats(AMX *amxcell *params)  /*1 param */
{
    
int index params[1];
    
CHECK_PLAYERRANGE(index);
    
CPlayerpPlayer GET_PLAYER_POINTER_I(index);

    if( 
pPlayer->rank )
    {
        
pPlayer->rank->Stats::Stats();
        
pPlayer->PutInServer();
        
pPlayer->rank->updatePosition(pPlayer->rank);
        return 
1;
    }
    return 
0;

https://github.com/ShootingKing-AM/csx/

Edit:
You can remove WinCSX from your project, This update is not related to WinCSX.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 02-26-2014 at 12:07.
Shooting King 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 18:00.


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