16.09.2011, 14:48
Guys Please tell me how to make a Dialog Script for my server
The Command will be /credits! =D
Thanks Guys!
The Command will be /credits! =D
Thanks Guys!
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", "");
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;
}
if(strcmp(cmd,"/credits", true) == 0)
{
ShowPlayerDialog(playerid, 550, DIALOG_STYLE_MSGBOX,"Credits","Credits goes to: RockandRol123 [PH]","Ok","");
return 1;
}