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.");
- if(getPlayerVehicles(playerid) == 0) return SCM(playerid, -1, "You don't own a vehicle!");
- 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));
- 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[512],count, string2[ 2500 ];
- new coordsstring[64] = "Vehicul\tStatus\tID\tTimp despawnare\n";
- for(new id; id < playerVariables[playerid][pCarSlots]; id++)
- {
- if(playerVariables[playerid][pCar][id] != -1)
- {
- new timestatus[50];
- if(!CarTow(playerVariables[playerid][pCarID][id]) && playerVariables[playerid][pCarID][id] != 0) {
- timestatus = "in use";
- }
- else {
- format(timestatus, sizeof(timestatus), "%s", CalculeazaTimp2(SpawnTime[playerVariables[playerid][pCarID][id]]));
- }
- 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 );
- else format(masina1, sizeof(masina1), "%s\t{ff0000}[despawned] {FFFFFF}\tnot spawned\tnot spawned\n",aVehicleNames[playerVariables[playerid][pCarModel][id] - 400]), strcat( string2, masina1 );
- count++;
- }
- }
- strins(string2, coordsstring, 0);
- Dialog_Show(playerid,manage_vehicles,DIALOG_STYLE_TABLIST_HEADERS,"vehicule personale",string2,"Select","Exit");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement