25.03.2015, 20:26
Hi, i need a command, it's /news, it's shows all update for the server ect..
// This command displays the rules of the server COMMAND:news(playerid, params[]) { // Setup local variables new Msg[2000]; // Send the command to all admins so they can see it SendAdminText(playerid, "/news", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Construct the rules format(Msg, 2000, "%s1.----------------------------- Mise а jour V1.1 ----------------------------- .\n", Msg); format(Msg, 2000, "%s2. Ajout d'une nouvelle commande pour respawn son vйhicule, /resveh.\n", Msg); format(Msg, 2000, "%s3. Le mot de passe est maintenant invisible quand vous le tapez.\n", Msg); format(Msg, 2000, "%s4. Ajouts de quelque missions pour les camionneurs.\n", Msg); format(Msg, 2000, "%s5. Ajout d'un ferry reliant entre Los Island et California island (initbrain).\n", Msg); format(Msg, 2000, "%s6. Un anti-spam pour le chat.\n", Msg); format(Msg, 2000, "%s7. Ajout d'un anti-ping, il kick les joueurs ayant un ping plus de 500.\n", Msg); format(Msg, 2000, "%s8. Ajout d'un Regulateur de vitesse.\n", Msg); // Show a dialog that shows the rules ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Les news du serveur:", Msg, "Sortire", TXT_DialogButtonCancel); } else return 0; // Let the server know that this was a valid command return 1; }
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true) All player's can see the cmd. |
else
return 0;