[CAMPANIE STAFF]Cautam moderatori si designeri activi!
Welcome to WTFCS Community Forums!
Servere gaming la super-preturi! [HOSTING SERVICE]
-->






[Tutorial] Anti Flood
Author : SaTaNa99, Category : Tutoriale, 0 Replyes, 1390 Views
EVALUATE THIS TOPIC
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 Guest(s)
fondator rsp.wtfcs.com
 
421
POSTS
150
THREADS
0
REPUTATION
Male
Sex

WtfCs Coins: -0.01[w]
01-09-2014, 11:30 AM
#1
Sall All!
Aveti un sv de Sa-Mp si nu stiti cum sa va protejati de FlooD? pai este foarte simplu, Nu protejeaza in totalitate insa ... Protejeaza!

Deschideti pawno, da-ti pe new si srieti aceste randuri :

Pawno code:

#define IP_LIMIT 3 // = Conexiuni maxime de pe un singur ip
#define Time_Limit 3500 // = Intervalul de timp dintre conectiuni, se adapteaza la propriile specificatii!
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) {
new server_IP[16];
format(server_IP, 16, "127.0.0.1"); // Ip-ul serverului !

if(strcmp(ConnIP,server_IP,true) != 0) {
Ban(playerid); // Banul este cel mai sigur lucru!
return 0;
}
}
return 1;
}
Regulament forum: You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.


Forum Jump: