I have this points resetter installed on my server:
PHP Code:
public Action:Event_TeamChange(Handle:event, String:event_name[], bool:dontBroadcast) {
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new teamnew = GetEventInt(event, "team");
new teamold = GetEventInt(event, "oldteam");
if (teamold != teamnew && IsAllowedReset()) {
points[client] = GetConVarInt(StartPoints);
hurtcount[client] = 0;
protectcount[client] = 0;
headshotcount[client] = 0;
killcount[client] = 0;
wassmoker[client] = 0;
}
tanksspawned = 0;
witchsspawned = 0;
PrintToChat(client, "[PS]The Points are been reset to 200.");
}
This one works very good.
Iam currently on survivor/infected team => switch to infected/survivor => Points are reset to 200.
Iam on survivor/infected team => switch to spec mode and back => point should be not reset.
Is that possible?
Thanks in advance