Szerző Téma: Ne lehessen szervert hirdetni script  (Megtekintve 529 alkalommal)

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Ne lehessen szervert hirdetni script
« Dátum: 2013. Március 12. - 14:38:00 »
0 Show voters
Sziasztok!
Mivel nem vagyok nagy pawno zseni és csak egyszer probáltam megkészíteni egy olyan scriptet ami nem engedi hogy valaki más szervert hirdessen :( :(
Ezért tõletek kérném azt hogy írnátok nekem egy ilyen és az összes szerver felismerné
Elõre is köszönöm!!

Nem elérhető Raidon

  • 231
    • Profil megtekintése
Ne lehessen szervert hirdetni script
« Válasz #1 Dátum: 2013. Március 12. - 14:59:27 »
+1 Show voters
Ez nem jó?
 
#include <a_samp>
 
new str[128];
 
public OnPlayerText(playerid, text[])
{
 
if(anty(text) && !IsPlayerAdmin(playerid))
{
format(str,256,\"%s Banolva lett a szerverrõl(IP).Ok: Hirdetés :)\",PlayerName(playerid));
SendClientMessageToAll(0xFF0000FF, str);
Ban(playerid);
return 0;
}
 
return 1;
}
stock anty(string[])
{
if(strfind(string,\"www.\",true)!=-1 || strfind(string,\"http://\",true)!=-1 || strfind(string,\".com\",true)!=-1 || strfind(string,\".net\",true)!=-1 || strfind(string,\"91.\",true)!=-1 || strfind(string,\"195.\",true)!=-1 || strfind(string,\".pl\",true)!=-1|| strfind(string,\".org\",true)!=-1)
return true;
return false;
}
 
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}

 
Forrás:

http://sampforum.hu/index.php?topic=27154.msg290121#msg290121

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Ne lehessen szervert hirdetni script
« Válasz #2 Dátum: 2013. Március 12. - 15:37:44 »
0 Show voters
igen kösz ment a + !! :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal