-
Üdv itt van ez a parancs dialoggal:
if (strcmp(\"/dialog\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_DIALOG, DIALOG_STYLE_MSGBOX, \"Teleportálás\", \"Szeretnél elteleportálni?\\n\", \"Tele1\", \"Tele2\");
return 1;
}
Hogy tudom azt megcsinálni ha rákattintok a:
Tele1: SetPlayerPos(playerid, 1935.5259,-1885.7679,13.5344);
Tele2: SetPlayerPos(playerid, 1925.5225,-1885.7679,13.5344);
-
Ezt másold a public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) alá:
if(dialogid == DIALOG_DIALOG)
{
if(response)
{
SetPlayerPos(playerid, 1935.5259,-1885.7679,13.5344);
}else{
SetPlayerPos(playerid, 1925.5225,-1885.7679,13.5344);
}
return 1;
}
return 0;
}
-
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_DIALOG)
{
if(response == 0)
{
SendClientMessage(playerid, irj esz szinkodot, \"Elteleportáltál\");
SetPlayerPos(playerid, 1935.5259,-1885.7679,13.5344);
}
if(response == 1)
{
SendClientMessage(playerid, irj esz szinkodot, \"Elteleportáltál\");
SetPlayerPos(playerid, 1925.5225,-1885.7679,13.5344);
}
return 1;
}