29.08.2015, 09:34
How do i create a msg box after i press the spawn button?
#define DIALOG_SPAWN 84393 // Change if it's conflicting.
public OnPlayerSpawn(playerid) {
ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_MSGBOX, "Title", "Message", "Okay", "");
return 1;
}
public OnPlayerSpawn(playerid)
{
new tDialog[412]; //412 the letters can be show
strcat(tDialog, "{ff6600}1.READ OUR RULES \n");
strcat(tDialog, "{ff6600}2.Follow the rules! :D \n");
strcat(tDialog, "{ff6600}3.Or Else BAN! :C \n");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "{00fff6}Welcome To Our Server", tDialog, "{d000ff}OK", ""); //Welcome To Our Server < thats the title of the message box
return 1;
}