Command /clan
#2

You can like define a clan and add and passcode or something ?

Код:
#define CLANTAG "[DZ]" // example
#define CLANPASSWORD "testpasscode" //Enter the clan password

It should be something like this


public OnPlayerConnect(playerid)
{
        new string[500];
        new nome[24];
        GetPlayerName(playerid, nome, 24);
        if(strfind(nome, CLANTAG, true) == 0)
        {
                format(string, sizeof(string), "{FFFFFF}Welcome%s!\nYou must confirm the clan password %s.\nEnter the clan password and confirm.", nome);
                ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "Clan", string, "Confirm", "Exit");
        }
        else
        {
                SendClientMessage(playerid, DZ, "Welcome!");
        }
        return 1;
}
Hope you can do the rest.
Reply


Messages In This Thread
Command /clan - by toi - 16.08.2012, 16:16
Re: Command /clan - by RanSEE - 16.08.2012, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)