GuskiS / Trouble-in-Terrorist-Town

Trouble in Terrorist Town for Counter-Strike 1.6
6 stars 7 forks source link

ttt_warning_system doesn't ban #34

Open Maxi605 opened 6 years ago

Maxi605 commented 6 years ago

ttt_warning_system doesn't ban if at the beggining of the map there was less players than cvar value, even if other playersc onnect, it just doesn't ban

GuskiS commented 6 years ago

I can't understand this one.

Maxi605 commented 6 years ago

The right way to ban,

For wrong killing:

server_cmd("addip %d ^"%s^"", get_pcvar_num(cvar_warnings_bantime), sZipadd); server_cmd("writeip");

For low karma:

server_cmd("addip %d ^"%d^"", get_pcvar_num(cvar_warnings_bantime), sZipadd); server_cmd("writeip");

And for low karma sometimes it doesn't ban the players, reason unknown.