Quote:
Originally Posted by mforce
Is it possible for reset all variables?
|
I assume by all variables, you mean just the connecting player?
It's common practice to clear variables when the player disconnects to leave the slot clean for the next player who connects on the slot.
Try this:
PHP Code:
enum _:PLAYER_DATABASE
{
STEAMID[32],
AWP_KILLS,
SCOUT_KILLS,
DEAGLE_KILLS,
USP_KILLS,
GLOCK_KILLS,
KNIFE_KILLS,
AWP_MENU,
SCOUT_MENU,
DEAGLE_MENU,
USP_MENU,
GLOCK_MENU,
KNIFE_MENU
}
new player_data[33][PLAYER_DATABASE];
public client_putinserver(id)
{
if( !is_user_bot( id ) )
load(id);
}
public client_disconnect( id )
{
arrayset( player_data[ id ] , 0 , sizeof( player_data[] ) );
}
__________________