mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 00:33:21 +00:00
identity_fix: Fix error on player disconnect
This commit is contained in:
parent
fd63f7ca8c
commit
d1a09817f1
2 changed files with 5 additions and 3 deletions
Binary file not shown.
|
@ -299,9 +299,11 @@ public Action Event_PlayerFirstSpawn(Event event, const char[] name, bool dontBr
|
|||
}
|
||||
public Action Event_PlayerDisconnect(Event event, const char[] name, bool dontBroadcast) {
|
||||
int client = GetClientOfUserId(event.GetInt("userid"));
|
||||
g_Models[client][0] = '\0';
|
||||
if(!IsFakeClient(client) && survivors > 0)
|
||||
survivors--;
|
||||
if(client > 0) {
|
||||
g_Models[client][0] = '\0';
|
||||
if(!IsFakeClient(client) && survivors > 0)
|
||||
survivors--;
|
||||
}
|
||||
}
|
||||
public void Frame_CheckClient(int userid) {
|
||||
int client = GetClientOfUserId(userid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue