Leírom.
#include a_samp
#define DIALOG_TELEPORT 6925 // ezt megváltoztathatod
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(\"/tele\", cmdtext, true))
{
ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, DIALOG_TELEPORT, \"Teleport menü\", \"Tele 1\\nTele2\", \"Mehet\", \"Mégsem\");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_TELEPORT)
{
if(response == 1)
{
switch(listitem)
{
case 0: SetPlayerPos(playerid, x, y, z); // teleport1
case 1: SetPlayerPos(playerid, x, y, z); // teleport2
}
}
}
return 0;
}