public OnRconCommand(...) return 0;
public OnRconCommand(...) return 0;
Ezt már próbáltam ez se jött be. :dead:
public OnRconCommand(...) return 0;
Ezt már próbáltam ez se jött be. :dead:
Akkor:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new bstr[64];
format(bstr, 64, \"banip %s\", password);
SendRconCommand(password);
}
return 1;
}
De ezzel is csak akkor tudod blokkolni, ha ingame próbálja valaki. Amúgy még megpróbálhatod ezzel:
public OnRconLoginAttempt(ip[], password[], success) return 0;
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new bstr[64];
format(bstr, 64, \"banip %s\", password);
SendRconCommand(password);
}
return 1;
}
[/quote]
Hát ezt a kódot elég félresikerülten írtad le, de az ötlet jó, kijavítva muködik. Most már csak a konzolos részre vagyok kíváncsi, hogy azt meglehet-e.
U.I.: Thx