Dialogs - 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: Dialogs (
/showthread.php?tid=283737)
Dialogs -
RockandRol123 [PH] - 16.09.2011
Guys Please tell me how to make a Dialog Script for my server
The Command will be /credits! =D
Thanks Guys!
Re: Dialogs - [L3th4l] - 16.09.2011
pawn Код:
ShowPlayerDialog(playerid, DIALOG_IDZOR, DIALOG_STYLE_MSGBOX, "This is the title", "You can put credits here. To create a new line, just put\nNow, we are on a new line. You can create multiple lines by doing\n\n\nThat would create 3 lines. To TAB, you can use\tOur text is tabbed.\n\n\nCredits:RockandRol123[PH]", "Close", "");
Re: Dialogs -
RockandRol123 [PH] - 16.09.2011
Give me the whole with if(strcmp("/credits")...............
Please?
Re: Dialogs -
doreto - 16.09.2011
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/credits", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX, "This is the title", "You can put credits here. To create a new line, just put\nNow, we are on a new line. You can create multiple lines by doing\n\n\nThat would create 3 lines. To TAB, you can use\tOur text is tabbed.\n\n\nCredits:RockandRol123[PH]", "Close", "");
return 1;
}
return 0;
}
Re: Dialogs -
Jafet_Macario - 16.09.2011
PHP код:
if(strcmp(cmd,"/credits", true) == 0)
{
ShowPlayerDialog(playerid, 550, DIALOG_STYLE_MSGBOX,"Credits","Credits goes to: RockandRol123 [PH]","Ok","");
return 1;
}
EDIT: too late