dialog /rules
#1

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
Reply
#2

ShowPlayerDialog? "O.o"
Reply
#3

what do u mean im a noob at this
Reply
#4

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

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

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

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 )
Reply
#7

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"
Reply
#8

thanx guys !
Reply


Forum Jump:


Users browsing this thread: