24.05.2014, 22:18
(
Последний раз редактировалось eXeDev; 08.06.2014 в 20:13.
)
If you're using y_commands:
If you're using ZCMD:
If you're using strcmp:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
pawn Код:
YCMD:dialog(playerid, params[], help)
{
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
}
pawn Код:
CMD:dialog(playerid, params[])
{
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/dialog"))
{
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
}
return false;
}