Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:v(playerid, params[], help)
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
- if(BlockVehUse[playerid] != 0) return SS(playerid, COLOR_RED2, "Ai prea multe masini, foloseste /sellcar si vinde una.", "You have to many vehicles, use /sellcar and sell one.");
- new masina1[256],masina[1000],count;
- for(new id; id < PlayerInfo[playerid][pCarSlots]; id++)
- {
- if(PlayerInfo[playerid][pCar][id] != -1)
- {
- if(PlayerInfo[playerid][pCarID][id] != 0)
- {
- format(masina1, sizeof(masina1), "{0C370A}(spawned) {FFFFFF}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]);
- strcat(masina, masina1);
- }
- else
- {
- format(masina1, sizeof(masina1), "{FB0404}(despawned) {FFFFFF}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]);
- strcat(masina, masina1);
- }
- count++;
- }
- else
- {
- format(masina1, sizeof(masina1), "{F3FF73}[ empty ]\n");
- strcat(masina, masina1);
- }
- }
- if(count != 0)
- {
- if(PlayerInfo[playerid][pCarSlots] < 10)
- {
- format(masina1, sizeof(masina1), "{E99B5F}[+] Add vehicle slot - 20 premium points\n");
- strcat(masina, masina1);
- }
- }
- else 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