22.05.2016, 18:11
Код:
new SlotItem[7]; CMD:gps(playerid,params[]) { new gps[70*6], temp[60]; for(new i = 1; i < 7; i++){ if(InfoV[playerid][i][vPuedeCrearse]){ SlotItem[i] = InfoV[playerid][vID]; format(temp, sizeof(temp), "%s (ID: %i)\n", GetVehicleName(InfoV[playerid][i][vModelo]),InfoV[playerid][vID]); strcat(gps, temp); } } ShowPlayerDialog(playerid,DIALOG_GPS,DIALOG_STYLE_LIST,"Tus vehнculos",gps,"Localizar","Salir"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_GPS: { if(!response) return 0; new Float:x,Float:y,Float:z; GetVehiclePos(SlotItem[listitem+1], x, y, z); return 1; } } return 0; }