SA-MP Forums Archive
Dialog MSG Box - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog MSG Box (/showthread.php?tid=128279)



Dialog MSG Box - [SU]CHRiS - 17.02.2010

i need help on how to make a message Box so the player can read the rules.

i know how to make a item listed box.

Does anyone know hoe to make then message box ?


Re: Dialog MSG Box - Onyx09 - 17.02.2010

chek the wiki of samp im pretty sure you didnt even read it and just want someone to make it for you
so make the post in request thread


Re: Dialog MSG Box - aircombat - 17.02.2010

listen here is an example of making rules dialog when a player join the server , if he pressed accept , he can play , if he pressed decline , he is kicked :

OnPlayerConnect :

Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Rules :","Golden Rule : Respect all the players and admins. \nNo Hacking or Cheating. \nNo Teamkilling. \nNo Drive-By Or Blade-Killing. \nNo Glitching or Bugging. \nNo Spamming. \nNo Swearing.\n______________________________________________________","Accept","Decline");
return 1;
}
OnDialogResponse (bottom of script)

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pName3[MAX_PLAYER_NAME];
{
if(dialogid == 0)
{
if(response == 0)
{
SendClientMessage(playerid, 0xAA3333AA, "You MUST Accept Those Rules Or Be Kicked!");
Kick(playerid);
new stringsys [256];
GetPlayerName(playerid, pName3, sizeof(pName3));
format(stringsys, sizeof(stringsys), "[SYSTEM] %s Has Been Kicked For Not Accepting Rules!", pName3);
SendClientMessageToAll(0xAA3333AA, stringsys);
}
if(response == 1)
{
SendClientMessage(playerid, 0xAA3333AA, "Thank You For Accepting Our Rules.");
}
return 1;
}
return 0;
}


}
________
Xxx videos free


Re: Dialog MSG Box - [SU]CHRiS - 17.02.2010

Got it, Thanks, all i need was \n i didnt know how to pass over to the next line.


Re: Dialog MSG Box - aircombat - 17.02.2010

u r welcome
________
Problems with nexium