SA-MP Forums Archive
dialog /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: dialog /rules (/showthread.php?tid=382188)



dialog /rules - Wonderweiss - 02.10.2012

if(strcmp(cmd, "/rules", true) == 0) {
SendPlayerFormattedText(playerid,"1.Dont use any kind of cheats",0);
SendPlayerFormattedText(playerid,"2.Respect the admins and other players",0);
SendPlayerFormattedText(playerid,"3.Dont use bugs to get advantage of the game",0);
SendPlayerFormattedText(playerid,"4.No helikilling", 0);
SendPlayerFormattedText(playerid,"5.No carparking", 0);
SendPlayerFormattedText(playerid,"6.No spamming", 0);
SendPlayerFormattedText(playerid,"7.No big teams against smaller ones (like 3vs1)", 0);
SendPlayerFormattedText(playerid,"8.No freekilling", 0);
SendPlayerFormattedText(playerid,"9.No deathavoid (leaving the server while in a battle)", 0);
SendPlayerFormattedText(playerid,"10.No pausing (no pausing while in battle)", 0);
SendPlayerFormattedText(playerid,"11.No multiaccounts", 0);
SendPlayerFormattedText(playerid,"12.Dont abuse /brb and /afk commands", 0);
return 1;

how can i make dialog of these O.o


Re: dialog /rules - Riddick94 - 02.10.2012

ShowPlayerDialog? "O.o"


Re: dialog /rules - Wonderweiss - 02.10.2012

what do u mean im a noob at this


Re: dialog /rules - Riddick94 - 02.10.2012

https://sampwiki.blast.hk/wiki/ShowPlayerDialog

Fill "info[]" parameter with your text what you want to put in.


Re: dialog /rules - Wonderweiss - 02.10.2012

omg all text in one line like 1.blahblahblah2.blah3.blahblah


Re: dialog /rules - 0utLaW_ - 02.10.2012

pawn Код:
if(strcmp(cmdtext, "/rules",true) ==0)
   {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "RuleBox for DAT Rules", "_------ SA-CNR----_\n-Dont use any kind of cheats\nRespect the admins and other players\nDont use bugs to get advantage of the game\nNohelikill, carpaking and spamming\nNo big teams against smaller ones\nNo freekilling and deathavoding\nNo puasing and multipleaccounts\nNo abuse of /afk and /brb\n_----------------------------------_", "OK", "");
        return 1;
   }

Easy lol
And strcat is better btw )


Re: dialog /rules - Riddick94 - 02.10.2012

Quote:
Originally Posted by 0utLaW_
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/rules",true) ==0)
   {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "RuleBox for DAT Rules", "_------ SA-CNR----_\n-Dont use any kind of cheats\nRespect the admins and other players\nDont use bugs to get advantage of the game\nNohelikill, carpaking and spamming\nNo big teams against smaller ones\nNo freekilling and deathavoding\nNo puasing and multipleaccounts\nNo abuse of /afk and /brb\n_----------------------------------_", "OK", "");
        return 1;
   }


like
This is a Script Help forum.

If you want to make it look clearly use "\n" what means "put next text in the new line"


Re: dialog /rules - Wonderweiss - 02.10.2012

thanx guys !