How do i create a msg box after i spawn?
#1

How do i create a msg box after i press the spawn button?
Reply
#2

Use ShowPlayerDialog under OnPlayerSpawn
Reply
#3

I dont know how to use it,
Anyone can send me a code of it please?
I will appreciate it.
Reply
#4

PHP код:
#define DIALOG_SPAWN 84393 // Change if it's conflicting.
public OnPlayerSpawn(playerid) {
    
ShowPlayerDialog(playeridDIALOG_SPAWNDIALOG_STYLE_MSGBOX"Title""Message""Okay""");
    return 
1;

Pretty basic.
Reply
#5

Here i make it for you

PHP код:
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(playerid0DIALOG_STYLE_MSGBOX"{00fff6}Welcome To Our Server"tDialog"{d000ff}OK"""); //Welcome To Our Server < thats the title of the message box
    
return 1;

EDIT : huhu Jamester XD
Reply
#6

Ty bros !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)