SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 10/08/2011, 06:53 PM   #21
[ITS]StatickShock
Big Clucker
 
[ITS]StatickShock's Avatar
 
Join Date: May 2011
Location: Sicily (Italy)
Posts: 62
Reputation: 2
Default Re: Anti Clan Fake

thanks all
[ITS]StatickShock is offline   Reply With Quote
Old 04/09/2011, 07:44 AM   #22
Pleasee
Little Clucker
 
Join Date: Sep 2011
Posts: 13
Reputation: 0
Default Respuesta: Anti Clan Fake

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

Code:
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 (c) 1997-2006, ITB CompuPhase


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

Last edited by Pleasee; 07/09/2011 at 08:01 AM.
Pleasee is offline   Reply With Quote
Old 06/09/2011, 07:14 PM   #23
[ITS]StatickShock
Big Clucker
 
[ITS]StatickShock's Avatar
 
Join Date: May 2011
Location: Sicily (Italy)
Posts: 62
Reputation: 2
Default Re: Anti Clan Fake

post your script
[ITS]StatickShock is offline   Reply With Quote
Old 07/09/2011, 08:03 AM   #24
Pleasee
Little Clucker
 
Join Date: Sep 2011
Posts: 13
Reputation: 0
Default Respuesta: Anti Clan Fake

Here you are:

pawn Code:
#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;
    }
}
Pleasee is offline   Reply With Quote
Old 08/09/2011, 02:46 AM   #25
Pleasee
Little Clucker
 
Join Date: Sep 2011
Posts: 13
Reputation: 0
Default Respuesta: Anti Clan Fake

Now it works to me!
Pleasee is offline   Reply With Quote
Old 08/09/2011, 11:18 AM   #26
Lookin
Gangsta
 
Lookin's Avatar
 
Join Date: May 2010
Location: Aotearoa
Posts: 616
Reputation: 19
Default Re: Anti Clan Fake

dont double post please
Lookin is offline   Reply With Quote
Old 12/04/2013, 09:55 AM   #27
ProShooter22
Big Clucker
 
Join Date: Jan 2013
Posts: 150
Reputation: -14
Default Re: Anti Clan Fake

HEY IT DOESNT SHOW ANY EFFECTS INGAME HELP!
ProShooter22 is offline   Reply With Quote
Old 12/04/2013, 09:57 AM   #28
FunnyBear
Gangsta
 
Join Date: Mar 2013
Posts: 512
Reputation: 15
Default Re: Anti Clan Fake

Quote:
Originally Posted by ProShooter22 View Post
HEY IT DOESNT SHOW ANY EFFECTS INGAME HELP!
Well done, you bumped a two year old thread.
FunnyBear is offline   Reply With Quote
Old 12/04/2013, 10:03 AM   #29
ProShooter22
Big Clucker
 
Join Date: Jan 2013
Posts: 150
Reputation: -14
Default Re: Anti Clan Fake

Quote:
Originally Posted by FunnyBear View Post
Well done, you bumped a two year old thread.
omfg :O thank u for saying it lol it wont work now?
ProShooter22 is offline   Reply With Quote
Old 12/04/2013, 11:42 AM   #30
ElMelo
Big Clucker
 
Join Date: Mar 2013
Posts: 113
Reputation: 2
Default AW: Anti Clan Fake

Nice 10/10 men
ElMelo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti Fake Kill? PoWerZ Help Archive 7 20/11/2010 04:54 PM
Anti clan-teamkill Ribber Help Archive 0 22/08/2010 02:48 PM
Anti Fake Kill - Please Help Me! -Davee- Help Archive 47 16/02/2010 02:16 AM


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.