Jump to content

Cum sa adaugi un Ping Limiter


Recommended Posts

In acest tutorial am sa va invat cum sa faceti un ping limiter. Ping limiter in sensul ca daca cineva trece de un Numar va primi kick.

1. Deschideti pawno.Adaugam  forward ServerPingProtection();

Mergem la sfarsitul modului si adaugam ASTA >>> http://pastebin.com/m7161d197 <<<

Acum vom crea limita pingului. Mergeti la inceputul Modului si adaugati new MAX_PING_LIMIT = 400;  Playerul va primi kick daca depaseste aceasta limita. Desigur eu vam dat un exemplu cu acel 400 .voi puteti adauga ce limita doriti.

Acum vom face Timpul de controale al pingului Tot la inceputul modului adaugam new PingTimer = 60000;  Acum mergem la OnGameModeInit si vom adauga SetTimer("ServerPingProtection", PingTimer, true); . Acel 60000 inseamna 1 minut , mai pe scurt din minut in minut se va verifica pingul jucatorilor.

Daca nu ati inteles ceva postati.

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

  • 2 years later...
This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.