Advertisement
Guest User

Untitled

a guest
Dec 29th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 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(BlockVehUse[playerid] != 0) return SS(playerid, COLOR_RED, "Ai prea multe masini, foloseste /sellcar si vinde una.", "You have to many vehicles, use /sellcar and sell one.");
  5. new masina1[256],count,titlu[128], string2[ 700 ];
  6. format( titlu, sizeof(titlu), "Garajul lui %s (%d sloturi)",PlayerInfo[playerid][pNormalName],PlayerInfo[playerid][pCarSlots]);//
  7. new coordsstring[64] = "Vehicul\tStatus\tID\tTimp Despawn\n";
  8. for(new id; id < PlayerInfo[playerid][pCarSlots]; id++)
  9. {
  10. if(PlayerInfo[playerid][pCar][id] != -1)
  11. {
  12. if(PlayerInfo[playerid][pCarID][id] != 0) format(masina1, sizeof(masina1), "%s\t{0C370A}(spawned) {FFFFFF}\t%d\t %s\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400],PlayerInfo[playerid][pCarID][id],CalculeazaTimp2(SpawnTime[PlayerInfo[playerid][pCarID][id]])), strcat( string2, masina1 );
  13. else format(masina1, sizeof(masina1), "%s\t{FB0404}(despawned) {FFFFFF}\tnot spawned\tnot spawned\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]), strcat( string2, masina1 );
  14. count++;
  15. }
  16. }
  17. if(count != 0)
  18. {
  19. if(PlayerInfo[playerid][pCarSlots] < 11)
  20. {
  21. format(masina1, sizeof(masina1), "{E99B5F}[+] Add vehicle slot - 20 Premium Points\n"), strcat( string2, masina1 );
  22. }
  23. }
  24. else return SendClientMessage(playerid, COLOR_WHITE, "You don't own any cars.");
  25. strins(string2, coordsstring, 0);
  26. ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS,titlu,string2,"Select","Exit");
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement