Rules Dialog Part 2
#1

Hey guys

i have again a problem with my Dialog Rules the problem is

when i join the rules dialog appear and the register or Login dialog doesn't appear
and 2nd its this:



here's the code for the rules cmd

pawn Код:
CMD:rules(playerid, params[])
{
    new string[1024];

    format(string, 1024, "{FFFF00}1- {FF0000}No hacking/Cheating to get advantage over other players!\n{FF0000}2- {FFFF00}No Bug Abusing, c-bug, g-abuse and all other bugs are not allowed[2shot is allowed, you can also switch the weapons to reload]\n{FFFF00}3- {FF0000}No Blocking, Carjacking, Drive-by etc.. ,");
    format(string, 1024, "%sPlayers wanna have fun and dont wanna be always blocked in ramps, helikilled by someone.\n{FFFF00}4- {FFFF00}No Spawnkill, Players dont wanna be killed everytime they spawn.\n{FFFF00}5- {FF0000}No Advertisement, do NOT send any other server IP!\n{FF0000}6- {FFFF00}NO Racism/Insults,");
    format(string, 1024, "%sEveryone is allowed to play here.Not supporting any intolerance to other races, if so, please grow up.\n{FFFF00}7- {FF0000}Respect Everyone, Treat other players the way that you would want to be treated.\n \n{FFFF00}[NOTE] {00FF29}Players Seen Rule Breaking will be Punished the way it need to be.\n \n{FFFF00}If you see a player");
    format(string, 1024, "%sRuleBreaking Please Use {FF0000}/report, {FFFF00}if the Admins are not Online take some {00FF29}Valid and Solid Proofs {FF0000}and Report him on Forums.\n \n {00FF29} Thank you for Reading our Rules and Enjoy your Gameplay!", string);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"{002FFF}Supreme {1AFF00}Stunt {FF0000}World {FFFF00}Rules",string,"Ok","");
    return 1;
}
and here's the code for the OnPlayerConnect

pawn Код:
public OnPlayerConnect(playerid)
{   // Login Message
    new pName[24];
    new str[128];
    GetPlayerName(playerid, pName, 24);
    format(str, 128, "[SERVER] %s Joined Supreme Stunt World", pName);
    SendClientMessageToAll(0xB8860BAA, str);
    // Auto Repair
    SetTimerEx("AutoRepair",500,true,"d",playerid);
    // Login and Register System
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    // Rules Dialog

    new string[1024];

    format(string, 1024, "{FFFF00}1- {FF0000}No hacking/Cheating to get advantage over other players!\n{FF0000}2- {FFFF00}No Bug Abusing, c-bug, g-abuse and all other bugs are not allowed[2shot is allowed, you can also switch the weapons to reload]\n{FFFF00}3- {FF0000}No Blocking, Carjacking, Drive-by etc.. ,");
    format(string, 1024, "%sPlayers wanna have fun and dont wanna be always blocked in ramps, helikilled by someone.\n{FFFF00}4- {FFFF00}No Spawnkill, Players dont wanna be killed everytime they spawn.\n{FFFF00}5- {FF0000}No Advertisement, do NOT send any other server IP!\n{FF0000}6- {FFFF00}NO Racism/Insults,");
    format(string, 1024, "%sEveryone is allowed to play here.Not supporting any intolerance to other races, if so, please grow up.\n{FFFF00}7- {FF0000}Respect Everyone, Treat other players the way that you would want to be treated.\n \n{FFFF00}[NOTE] {00FF29}Players Seen Rule Breaking will be Punished the way it need to be.\n \n{FFFF00}If you see a player");
    format(string, 1024, "%sRuleBreaking Please Use {FF0000}/report, {FFFF00}if the Admins are not Online take some {00FF29}Valid and Solid Proofs {FF0000}and Report him on Forums.\n \n {00FF29} Thank you for Reading our Rules and Enjoy your Gameplay!", string);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"{002FFF}Supreme {1AFF00}Stunt {FF0000}World {FFFF00}Rules",string,"Ok","");
    return 1;
}
Hope you can help me
Reply


Messages In This Thread
Rules Dialog Part 2 - by Andre02 - 30.07.2014, 07:53
Re: Rules Dialog Part 2 - by MacT - 30.07.2014, 08:12
Re: Rules Dialog Part 2 - by Dignity - 30.07.2014, 08:15
Re : Rules Dialog Part 2 - by Andre02 - 30.07.2014, 08:26
Re : Rules Dialog Part 2 - by Andre02 - 30.07.2014, 08:50
Re: Rules Dialog Part 2 - by IceBilizard - 30.07.2014, 08:54
Re : Rules Dialog Part 2 - by Andre02 - 30.07.2014, 08:56
Re: Rules Dialog Part 2 - by KayJ - 30.07.2014, 09:05
Re : Rules Dialog Part 2 - by Andre02 - 30.07.2014, 09:25
Re: Rules Dialog Part 2 - by KayJ - 30.07.2014, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)