#5

No, just do this:
pawn Код:
// This command displays the rules of the server
CMD:rules( playerid )
{
    // Setup local variables
    new Msg[ 5000 ];

    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/rules", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        strcat( Msg, "1. No fighting, no killing, no ramming or carjacking!\n" );
        strcat( Msg, "2. Teleport, weapons,airbreak,speedhack and other cheats are not allowed.\n" );
        strcat( Msg, "3. No flooding or spamming of chat, no advertising.\n" );
        strcat( Msg, "4. No glitching or lagging mods.\n" );
        strcat( Msg, "5. Main chat only english.\n" );
        strcat( Msg, "6. Respect other players. Abusive lanuage is not allowed.\n" );
        strcat( Msg, "7. Glitching/ bugged vehicles modifications are not allowed.\n" );
        strcat( Msg, "8. Do not ask for money/ house/ cars or score earn everything by yourself.\n" );
        strcat( Msg, "9. Do not PM admins for no good reason. Use forum instead.\n" );
        strcat( Msg, "10. Any bugs should be reported to admins or in forum. Don't exploit bugs!\n" );
        strcat( Msg, "Vist http://www.uktrucking.co.nr for more explicit rules, driving rules etc.\n" );
        strcat( Msg, "Anyone breaking the rules will be banned.\n" );
        // Show a dialog that shows the rules
        ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Rules of the server:", Msg, "Accept", TXT_DialogButtonCancel);
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Reply


Messages In This Thread
Help - by Trucker[UK] - 24.09.2011, 16:21
Re: Help - by array13 - 24.09.2011, 16:25
Re: Help - by Trucker[UK] - 24.09.2011, 16:26
AW: Help - by Nero_3D - 24.09.2011, 16:32
Re: Help - by aRoach - 24.09.2011, 16:33
Re: Help - by Trucker[UK] - 24.09.2011, 16:40
Re: Help - by aRoach - 24.09.2011, 16:49
Re: Help - by Trucker[UK] - 24.09.2011, 17:17
Re: Help - by Trucker[UK] - 24.09.2011, 17:26
Re: Help - by Trucker[UK] - 24.09.2011, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)