- 0
Anti ...reclama
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
NeO
Salut ;D
M-am uitat aici : http://forum.sa-mp.com/index.php?topic=170758.0
si am vazut acele coduri
if(FindIP(text)) /// Anti-Reclama { SendClientMessage(playerid, COLOR_RED, "You have kicked for Guardian , because you write an IP Adrees."); new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "* %s was kicked by Guardian, reason: Server Advertising",advertiser); SendClientMessageToAll(0xFF6347AA,string); KickLog(string); Kick(playerid); return 1; }FindIP(StrToChk[]) { new IpLevel = 0; for(new a = 0; a < strlen(StrToChk); a++) { switch(IpLevel) { case 0: { if(IsNum(StrToChk[a])) IpLevel++; } case 1, 2: { if(IsNum(StrToChk[a])) IpLevel++; else if(StrToChk[a] == '.') IpLevel = 4; else IpLevel = 0; } case 3: { if(StrToChk[a] == '.') IpLevel++; else IpLevel = 0; } case 4: { if(IsNum(StrToChk[a])) IpLevel++; else IpLevel = 0; } case 5, 6: { if(IsNum(StrToChk[a])) IpLevel++; else if(StrToChk[a] == '.') IpLevel = 8; else IpLevel = 0; } case 7: { if(StrToChk[a] == '.') IpLevel++; else IpLevel = 0; } case 8: { if(IsNum(StrToChk[a])) IpLevel++; else IpLevel = 0; } case 9, 10:{ if(IsNum(StrToChk[a])) IpLevel++; else if(StrToChk[a] == '.') IpLevel = 12; else IpLevel = 0; } case 11: { if(StrToChk[a] == '.') IpLevel++; else IpLevel = 0; } case 12: { if(IsNum(StrToChk[a])) return 1; else IpLevel = 0; } } } return 0; }AS vrea sa mi-l pun si eu in game mode
unde trebuie sa o pun ???
Trebuie vre-un include sau ceva?
Si pe care dintre cele 2 trebuie sa le pun ?
M u l t u m e s c
7 answers to this question
Recommended Posts