I NEED SOME HELP QUICKLY! PLEASE! :(
#6

Quote:
Originally Posted by Shadow_
View Post
pawn Code:
public OnPlayerConnect(playerid)
{
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    if(strcmp(pName, "Test", true) || strcmp(pName, "Test1", true) || strcmp(pName, "test2", true))
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Password", "Please enter the server password", "Enter", "Quit");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
            new password = strval(inputtext);
            if(password == strval("Testing"))
            {
                // GivePlayerAdmin
            }
            else return Kick(playerid);
        }
        else return Kick(playerid);
    }
    return 1;
}
Not tested it, not even sure if it will work. but i imagine it will be something very similar to that.
I Will test it after lunch and tell here if it works! Thanks a lot at the moment bro!
Reply


Messages In This Thread
I NEED SOME HELP QUICKLY! PLEASE! :( - by VanillaRain - 06.05.2012, 09:34
Re: I NEED SOME HELP QUICKLY! PLEASE! :( - by Jikesh - 06.05.2012, 09:46
Re: I NEED SOME HELP QUICKLY! PLEASE! :( - by VanillaRain - 06.05.2012, 09:52
Re: I NEED SOME HELP QUICKLY! PLEASE! :( - by VanillaRain - 06.05.2012, 10:01
Re: I NEED SOME HELP QUICKLY! PLEASE! :( - by Shadow_ - 06.05.2012, 10:15
Re: I NEED SOME HELP QUICKLY! PLEASE! :( - by VanillaRain - 06.05.2012, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)