Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. CMD:v(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
  4. if(getPlayerVehicles(playerid) == 0) return SCM(playerid, -1, "You don't own a vehicle!");
  5. if(startDelay > 0) return SCMf(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda deoarece server-ul a fost pornit recent. Incearca peste %s minute.", CalculeazaTimp2(startDelay));
  6. 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.");
  7. new masina1[512],count, string2[ 2500 ];
  8. new coordsstring[64] = "Vehicul\tStatus\tID\tTimp despawnare\n";
  9. for(new id; id < playerVariables[playerid][pCarSlots]; id++)
  10. {
  11. if(playerVariables[playerid][pCar][id] != -1)
  12. {
  13. new timestatus[50];
  14. if(!CarTow(playerVariables[playerid][pCarID][id]) && playerVariables[playerid][pCarID][id] != 0) {
  15. timestatus = "in use";
  16. }
  17. else {
  18. format(timestatus, sizeof(timestatus), "%s", CalculeazaTimp2(SpawnTime[playerVariables[playerid][pCarID][id]]));
  19. }
  20. if(playerVariables[playerid][pCarID][id] != 0) format(masina1, sizeof(masina1), "%s\t{00ff00}[spawned] {FFFFFF}\t%d\t %s\n",aVehicleNames[playerVariables[playerid][pCarModel][id] - 400],playerVariables[playerid][pCarID][id],timestatus), strcat( string2, masina1 );
  21. else format(masina1, sizeof(masina1), "%s\t{ff0000}[despawned] {FFFFFF}\tnot spawned\tnot spawned\n",aVehicleNames[playerVariables[playerid][pCarModel][id] - 400]), strcat( string2, masina1 );
  22. count++;
  23. }
  24. }
  25. strins(string2, coordsstring, 0);
  26. Dialog_Show(playerid,manage_vehicles,DIALOG_STYLE_TABLIST_HEADERS,"vehicule personale",string2,"Select","Exit");
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement