Advertisement
Guest User

Untitled

a guest
Apr 29th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. YCMD:v(playerid, params[], help)
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
  4. 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.");
  5. new masina1[256],masina[1000],count;
  6. for(new id; id < PlayerInfo[playerid][pCarSlots]; id++)
  7. {
  8. if(PlayerInfo[playerid][pCar][id] != -1)
  9. {
  10. if(PlayerInfo[playerid][pCarID][id] != 0)
  11. {
  12. format(masina1, sizeof(masina1), "{0C370A}(spawned) {FFFFFF}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]);
  13. strcat(masina, masina1);
  14. }
  15. else
  16. {
  17. format(masina1, sizeof(masina1), "{FB0404}(despawned) {FFFFFF}%s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]);
  18. strcat(masina, masina1);
  19. }
  20. count++;
  21. }
  22. else
  23. {
  24. format(masina1, sizeof(masina1), "{F3FF73}[ empty ]\n");
  25. strcat(masina, masina1);
  26. }
  27. }
  28. if(count != 0)
  29. {
  30. if(PlayerInfo[playerid][pCarSlots] < 10)
  31. {
  32. format(masina1, sizeof(masina1), "{E99B5F}[+] Add vehicle slot - 20 premium points\n");
  33. strcat(masina, masina1);
  34. }
  35. }
  36. else return SendClientMessage(playerid, COLOR_WHITE, "You don't own any cars.");
  37. ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_LIST,"Manage your vehicles",masina,"Select","Exit");
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement