#include < a_samp >#include < zcmd >#define DIALOG_TELE 100#define DIALOG_INFO 101CMD:tele( playerid, params[] ){ ShowPlayerDialog( playerid, DIALOG_TELE, DIALOG_STYLE_LIST, \"Teleport\",\"Los Santos\", \"Teleportálok\", \"Mégse\" ); return 1;}CMD:info( playerid, params[] ){ ShowPlayerDialog( playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, \"Infó\", \"blabla( ide írj, amit akarsz )\", \"Bezár\", \"\" ); return 1;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if( dialogid == DIALOG_TELE ) { if( response ) {switch ( listitem ){ case 0: SetPlayerPos( playerid, 1654.6724,-2450.8826,13.5547 );} } } return 1;}
Rendben