A Simple but efficient reset_user_stats (Explicitly calling Stats() constructor)
PHP Code:
static cell AMX_NATIVE_CALL reset_user_stats(AMX *amx, cell *params) /*1 param */
{
int index = params[1];
CHECK_PLAYERRANGE(index);
CPlayer* pPlayer = 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.
__________________