[FilterScript] Anti Clan Fake
#21

thanks all
Reply
#22

When I compile the file, it says me an error:

Код:
C:\Users\Bla\Desktop\AntiClanFake EN.pwn(24) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Bla\Desktop\AntiClanFake EN.pwn(34) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\Bla\Desktop\AntiClanFake EN.pwn(48) : error 017: undefined symbol "ShowPlayerDialog"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Change the symbols "ShowPlayerDialog" to the correct symbol, please. Thank you.
Reply
#23

post your script
Reply
#24

Here you are:

pawn Код:
#include <a_samp>
#define DIALOGCLAN 1000
#define TAGCLAN "[ITS]" // example [ITS]
#define PASSWORDCLAN "password" //Enter the clan password
#define ROSA                 0xFF66FFAA
#define BLU_CHIARO           0x00BFFFAA

public OnFilterScriptInit()
{
    print("\n------------------------------------------");
    print(" Anti fakeclan system by [ITS]StatickShock");
    print("------------------------------------------\n");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new stringa[500];
    new nome[24];
    GetPlayerName(playerid, nome, 24);
    if(strfind(nome, TAGCLAN, true) == 0)
    {
        format(stringa, sizeof(stringa), "{FFFFFF}Welcome {FF4444}%s{FFFFFF}!\nYou must confirm the clan password {FF4444}%s{FFFFFF}.\n{FFFFFF}Enter the clan password and confirm.", nome);
        ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Clan", stringa, "Confirm", "Exit");
    }
    else
    {
        SendClientMessage(playerid, BLU_CHIARO, "Welcome!");
    }
    return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    {
        new stringa[500];
        if(dialogid == DIALOGCLAN)
        {
            if(response)
            {
                if(!strlen(inputtext))
                {
                    new nome[24];
                    GetPlayerName(playerid, nome, 24);
                    format(stringa, sizeof stringa, "{FF4444}Error:{FFFFFF} Insert a password.\n\n{FFFFFF}Welcome {FF4444}%s{FFFFFF}!\nYou must confirm the clan password {FF4444}%s{FFFFFF}.\n{FFFFFF}Enter the clan password and confirm.", nome);
                    ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Account:", stringa, "Confirm", "Exit");
                    return 0;
                }
                if(!strcmp(inputtext, PASSWORDCLAN, false))
                {
                    new nome[24];
                    GetPlayerName(playerid, nome, 24);
                    format(stringa, sizeof(stringa), "** {FFFFFF}%s{00BFFF} has confirmed to be part of the clan.", nome);
                    SendClientMessageToAll(BLU_CHIARO, stringa);
                    SendClientMessage(playerid, BLU_CHIARO, "You have confirmed to be part of the clan!");
                    PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
                    return 1;
                }
                else
                {
                    new nome[24];
                    GetPlayerName(playerid, nome, 24);
                    format(stringa, sizeof(stringa), "** {FFFFFF}%s{00BFFF} has been kicked from the Server. [Reason: {FFFFFF}Failed login attempt in the clan{00BFFF}]", nome);
                    SendClientMessageToAll(BLU_CHIARO, stringa);
                    SendClientMessage(playerid, ROSA, "*** {FFFFFF}You have been kicked. Reason: {FF66FF}Failed login attempt in the clan{FFFFFF}.");
                    Kick(playerid);
                }
            }
            else if(!response)
            {
                new nome[24];
                GetPlayerName(playerid, nome, 24);
                SendClientMessage(playerid, ROSA, "*** {FFFFFF}You have been kicked. Reason: {FF66FF}Failed login attempt in the clan{FFFFFF}.");
                format(stringa, sizeof(stringa), "** {FFFFFF}%s{00BFFF} has been kicked from the Server. [Reason: {FFFFFF}Failed login attempt in the clan{00BFFF}]", nome);
                SendClientMessageToAll(BLU_CHIARO, stringa);
                Kick(playerid);
                PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            }
        }
        return 1;
    }
}
Reply
#25

Now it works to me!
Reply
#26

dont double post please
Reply
#27

HEY IT DOESNT SHOW ANY EFFECTS INGAME HELP!
Reply
#28

Quote:
Originally Posted by ProShooter22
Посмотреть сообщение
HEY IT DOESNT SHOW ANY EFFECTS INGAME HELP!
Well done, you bumped a two year old thread.
Reply
#29

Quote:
Originally Posted by FunnyBear
Посмотреть сообщение
Well done, you bumped a two year old thread.
omfg :O thank u for saying it lol it wont work now?
Reply
#30

Nice 10/10 men
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)