TWO help problems, I think they're easy for you..
#3

1)
pawn Код:
dcmd_rules(playerid)
{
        new BigString[1900];
        strcat(BigString, "\n{FFFFFF}1. {F81414}*******.");  //Line 679
        strcat(BigString, "\n{FFFFFF}2. {F81414}***********.");
        strcat(BigString, "\n{FFFFFF}3. {F81414}Do not Spam.");
        strcat(BigString, "\n{FFFFFF}4. {F81414}Do not use cheats or hacks.");
        strcat(BigString, "\n{FFFFFF}5. {F81414}*******.");
        strcat(BigString, "\n{FFFFFF}6. {F81414}************.");
        strcat(BigString, "\n{FFFFFF}7. {F81414}Never quit to avoid anything.");
        strcat(BigString, "\n{FFFFFF}8. {F81414}************");
        strcat(BigString, "\n{FFFFFF}9. {F81414}Never abuse a bug.");
        strcat(BigString, "\n{FFFFFF}10. {F81414}No mods are allowed.");
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX, "{ff0000}Rules", BigString, "Accept","Ignore");
        return 1;
}
2)
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_RULES && !response)
    {
        SendClientMessage(playerid,color,"You have been kicked because you don't accept our rules!");
        Kick(playerid);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)