Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:v(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
- new masina1[500],masina[1000],count;
- for(new id; id < PlayerInfo[playerid][pCarSlots]; id++)
- {
- if(PlayerInfo[playerid][pCar][id] != -1)
- {
- new drank[20];
- if(PlayerInfo[playerid][pUpgrade][id]==1) { drank = "V.I.P Vehicle"; }
- if(PlayerInfo[playerid][pCarID][id] != 0)
- {
- format(masina1, sizeof(masina1), "{0C370A}(spawned) {FFFFFF}%s\t despawn in %d min {FFFF00}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400],SpawnTime[PlayerInfo[playerid][pCarID][id]],drank);
- strcat(masina, masina1);
- }
- else
- {
- format(masina1, sizeof(masina1), "{FB0404}(despawned) {FFFFFF}%s {FFFF00}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400],drank);
- strcat(masina, masina1);
- }
- count++;
- }
- else
- {
- format(masina1, sizeof(masina1), "[Slot Gol]\n");
- strcat(masina, masina1);
- }
- }
- if(count == 0) return SendClientMessage(playerid, COLOR_WHITE, "You don't own any cars.");
- ShowPlayerDialog(playerid, DIALOG_VEHSPAWN, DIALOG_STYLE_LIST, "Manage your vehicles", masina, "Select", "Exit");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement