Fix player not being internally disconnected in some situation + add client_disconnected forward
This commit is contained in:
@ -819,7 +819,7 @@ new NumOfLeaders
|
||||
new LeaderID
|
||||
new PScore[MAX_PLAYERS + 1]
|
||||
|
||||
public client_disconnect(id) {
|
||||
public client_disconnected(id) {
|
||||
if ( !LeadSounds || isDSMActive() ) return PLUGIN_CONTINUE
|
||||
if ( PScore[id] == LeaderScore && LeaderScore > 0 ){
|
||||
NumOfLeaders --
|
||||
|
@ -21,7 +21,7 @@ new g_pingCount[MAX_PLAYERS + 1]
|
||||
public plugin_init()
|
||||
register_plugin("Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team")
|
||||
|
||||
public client_disconnect(id) {
|
||||
public client_disconnected(id) {
|
||||
if ( is_user_bot( id ) || !is_user_connected(id) || !isDSMActive() ) return PLUGIN_CONTINUE
|
||||
remove_task( id )
|
||||
new szTeam[16],szName[MAX_NAME_LENGTH],szAuthid[32], iStats[9], iHits[8], szWeapon[16]
|
||||
|
Reference in New Issue
Block a user