Server rules dialog
#6

ok i already fixed everything but now i got a new problem



here's code:

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

    format(string, 1024, "1- No hacking/Cheating to get advantage over other players!\n2- 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]\n3- No Blocking, Carjacking, Drive-by etc.. ,");
    format(string, 1024, "%sPlayers wanna have fun and dont wanna be always blocked in ramps, helikilled by someone.\n4- No Spawnkill, Players dont wanna be killed everytime they spawn.\n5- No Advertisement, do NOT send any other server IP!\n6- NO Racism/Insults, Everyone is allowed to play here.Not supporting any intolerance to other races, if so, please grow up.\n7- Respect Everyone, Treat other players the way that you would want to be treated.", string);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Server Rules",string,"Ok","");
    return 1;
}
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, "1- No hacking/Cheating to get advantage over other players!\n2- 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]\n3- No Blocking, Carjacking, Drive-by etc.. ,");
    format(string, 1024, "%sPlayers wanna have fun and dont wanna be always blocked in ramps, helikilled by someone.\n4- No Spawnkill, Players dont wanna be killed everytime they spawn.\n5- No Advertisement, do NOT send any other server IP!\n6- NO Racism/Insults, Everyone is allowed to play here.Not supporting any intolerance to other races, if so, please grow up.\n7- Respect Everyone, Treat other players the way that you would want to be treated.", string);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Server Rules",string,"Ok","");
    return 1;
}
Reply


Messages In This Thread
Server rules dialog - by Andre02 - 29.07.2014, 15:21
Re: Server rules dialog - by GShock - 29.07.2014, 15:28
Re : Re: Server rules dialog - by Andre02 - 29.07.2014, 15:40
Re: Server rules dialog - by DaniceMcHarley - 29.07.2014, 15:43
Re : Re: Server rules dialog - by Andre02 - 29.07.2014, 15:57
Re : Server rules dialog - by Andre02 - 29.07.2014, 16:32
Re : Server rules dialog - by Andre02 - 29.07.2014, 16:57
Re: Server rules dialog - by DaniceMcHarley - 29.07.2014, 16:57

Forum Jump:


Users browsing this thread: 3 Guest(s)