SA-MP Forums Archive
Editing server rules. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Editing server rules. (/showthread.php?tid=380423)



Editing server rules. - MrPlatinum - 25.09.2012

Anyway to edit the server rules? I'm using PPC_Trucking.
And when i type /rules it comes up with a small list of rules.. Anyway to add more to it?



Thanks guys.


Re: Editing server rules. - Socan - 25.09.2012

Pawns - includes - PPC_(I think general commands or whatever) then ctrfl f and rules depending on the processor it's using


Re: Editing server rules. - .v - 25.09.2012

#define DIALOG_RULES 5123

pawn Код:
CMD:rules(playerid, params[])
{
        new string[300];
        strcat(string,"No Ramming or your tires will burn \nNo Hacking or you will die instantly \nNo Car jacking it will lead you to sudden ban");
        strcat(string,"No spamming or you will be mutted until SAMP version 0.5f\nNo cleo mods this will crash your game (Death Blue screen) ");
        strcat(string,"Just edit those ");
        ShowPlayerDialog(playerid, Dialog_Rules, DIALOG_STYLE_MSGBOX, "Server Rules", string, "Close", "");
        return 1;
}



Re: Editing server rules. - MrPlatinum - 25.09.2012

thankyou


Re: Editing server rules. - Socan - 25.09.2012

No, that's not what he means he means how to edit the rules system that comes with the GM he is currently running, PPC_Trucking


Re: Editing server rules. - Lordzy - 25.09.2012

Rules in the form of message.
pawn Код:
CMD:rules(playerid,params[])
{
   SendClientMessage(playerid, 0xFF0000, "Rule: 1"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 2"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 3"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 4"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 5"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 6"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 7"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 8"); //Edit the text between quotes " "
   SendClientMessage(playerid, 0xFF0000, "Rule: 9"); //Edit the text between quotes " "
   return 1;
}

// 0xFF0000 refers to the color code red.