Jump to content
  • 0

FS care da ban automat


Question

Posted

As vrea sa stiu cum creez un FS care daca cineva intra pe server de exemplu cu _,[RSS],[sRC],?,

semne dinastea sa ia Ban AUTOMAT si sa zica Ai fost banat deoarece ai....ca nush cum am tot incercat si numi iese :(( va rog ajutatima :)

2 answers to this question

Recommended Posts

  • Administrator
Posted

E ceva de genul asta:

  • Pe la inceputul scriptului

new Name[MAX_PLAYER_NAME];
  • Adauga asta la public OnPlayerConnect(playerid)

{
    //restu de linii
    GetPlayerName(playerid, Name, sizeof(Name));

    if(strfind(Name, "[RSS]", true) != -1)
    {
        //player has it in their name...
        SendClientMessage(playerid, 0xFFFFFFFF, "OMG HAIII THATS A FORBIDDEN TAG!");
        new string[150];
        format(string,sizeof(string),"%s Got Auto Banned . Reason : [FORRBIDEN CLAN TAG] ",Name);
        BanEx(playerid,string);
        return 1;
    }
    //restu de linii
    return 1;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Guest
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.