28.07.2012, 13:08
AT THE TOP OF YOUR SCRIPT BELOW #INCLUDE <A_SAMP>:
And then this should help for OnDialogResponse: https://sampwiki.blast.hk/wiki/OnDialogResponse
pawn Код:
enum
{
DIALOG_TELEPORT
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tele", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_TELEPORT, DIALOG_STYLE_LIST, "Teleport", " //Your teleports here (ls\nlv\nsf) etc.", "Option 1", "Option 2");
return 1;
}
return 0;
}