mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-10 11:13:20 +00:00
Forget client on mapchange/disconnect
This commit is contained in:
parent
6f5aea44bb
commit
a51c5e5a5b
1 changed files with 9 additions and 0 deletions
|
@ -119,4 +119,13 @@ public void Event_TankSpawn(Event event, const char[] name, bool dontBroadcast)
|
||||||
|
|
||||||
bool IsPlayerIncapacitated(int client) {
|
bool IsPlayerIncapacitated(int client) {
|
||||||
return (GetEntProp(client, Prop_Send, "m_isIncapacitated") == 1);
|
return (GetEntProp(client, Prop_Send, "m_isIncapacitated") == 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClientDisconnect(int client) {
|
||||||
|
tankChosenVictim[client] = 0;
|
||||||
|
for(int i = 1; i <= MaxClients; i++) {
|
||||||
|
if(tankChosenVictim[i] == client) {
|
||||||
|
tankChosenVictim[i] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue