asta ?
case DIALOG_RENT: {
if(!response) return 1;
SetPVarInt(playerid, "listitem", listitem);
new string[64];
format(string,sizeof(string),"Pentru cate minute vrei sa inchiriezi un vehicul?\nPret;$%d/minut",RENT_PRICE);
ShowPlayerDialog(playerid, DIALOG_RENT+1, DIALOG_STYLE_INPUT, "Rent Car", string, "Select", "Cancel");
}
case DIALOG_RENT+1:{
if(!response) return 1;
listitem = GetPVarInt(playerid, "listitem");
new minutes = strval(inputtext),string[128],carid;
if(minutes < 1 || minutes > 30) return SCM(playerid,-1,"Poti inchiria un vehicul intre 1 si 30 de minute");
if(GetPlayerMoney(playerid) < minutes * RENT_PRICE) return SCM(playerid,-1,"Nu detii suma necesara de bani");
GivePlayerCash(playerid,- minutes*RENT_PRICE);
Update(pCashx);
switch(listitem){
case 0:{
format(string,sizeof(string),"Ai inchiriat un infernus pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(411, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
case 1:{
format(string,sizeof(string),"Ai inchiriat un sultan pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(560, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
case 2:{
format(string,sizeof(string),"Ai inchiriat un cheetah pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(415, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
case 3:{
format(string,sizeof(string),"Ai inchiriat un buffalo pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(402, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
case 4:{
format(string,sizeof(string),"Ai inchiriat un banshee pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(429, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
case 5:{
format(string,sizeof(string),"Ai inchiriat un voodo pentru %d minute si ai platit $%d",minutes,minutes*RENT_PRICE);
RentVehicle[playerid] = CreateVehicle(412, 542.3743,-1282.0509,17.2422, 90, -1, -1,300);
}
}
RentVehicle[playerid] = 1;
PlayerTimer[playerid] = SetTimer("RentCar", 60000 * minutes, false,"%d",playerid);
SCM(playerid, -1 ,string);
}