There's 2 diffrent ways to do it, if you want to do it when someone types something, or when someone spawns.
I'll show you when someone spawns.
GET THE STYLES FROM HERE
https://sampwiki.blast.hk/wiki/Dialog
In the picture the style is #0
pawn Код:
public OnPlayerSpawn(playerid) // when player spawns
{
ShowPlayerDialog(playerid, 1, 0, "This is the title", "/buylevel {0fc0fc}- bla bla, /quit - bla bla" , "ok", "cancel"); // shows the player the dialog, // playerid, dialogid, style, title, boy, button 1, button 2
return 1;
}
{0fc0fc} is the colors =
Light Blue.
-
That's for the script, it should work
Now if you want to add some effects to the buttons, you should go to
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) // to make respones
And there you edit the effects, k thx.
Click respect
![Cheesy](images/smilies/biggrin.png)
P.S. If you want 1 button, simply leave the other one empty(but add 1 space)