How do i create a msg box after i spawn? - 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: How do i create a msg box after i spawn? (
/showthread.php?tid=587233)
How do i create a msg box after i spawn? -
darkhunter332 - 29.08.2015
How do i create a msg box after i press the spawn button?
Re: How do i create a msg box after i spawn? -
xVIP3Rx - 29.08.2015
Use
ShowPlayerDialog under
OnPlayerSpawn
Re: How do i create a msg box after i spawn? -
darkhunter332 - 29.08.2015
I dont know how to use it,
Anyone can send me a code of it please?
I will appreciate it.
Re: How do i create a msg box after i spawn? -
J0sh... - 29.08.2015
PHP код:
#define DIALOG_SPAWN 84393 // Change if it's conflicting.
public OnPlayerSpawn(playerid) {
ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_MSGBOX, "Title", "Message", "Okay", "");
return 1;
}
Pretty basic.
Re: How do i create a msg box after i spawn? -
Hemeei - 29.08.2015
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(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;
}
EDIT : huhu Jamester XD
Re: How do i create a msg box after i spawn? -
darkhunter332 - 29.08.2015
Ty bros !