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(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.");
- new masina1[256],count,titlu[128], string2[ 700 ];
- format( titlu, sizeof(titlu), "Garajul lui %s (%d sloturi)",PlayerInfo[playerid][pNormalName],PlayerInfo[playerid][pCarSlots]);//
- new coordsstring[64] = "Vehicul\tStatus\tID\tTimp Despawn\n";
- for(new id; id < PlayerInfo[playerid][pCarSlots]; id++)
- {
- if(PlayerInfo[playerid][pCar][id] != -1)
- {
- 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 );
- else format(masina1, sizeof(masina1), "%s\t{FB0404}(despawned) {FFFFFF}\tnot spawned\tnot spawned\n",aVehicleNames[PlayerInfo[playerid][pCarModel][id] - 400]), strcat( string2, masina1 );
- count++;
- }
- }
- if(count != 0)
- {
- if(PlayerInfo[playerid][pCarSlots] < 11)
- {
- format(masina1, sizeof(masina1), "{E99B5F}[+] Add vehicle slot - 20 Premium Points\n"), strcat( string2, masina1 );
- }
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You don't own any cars.");
- strins(string2, coordsstring, 0);
- ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS,titlu,string2,"Select","Exit");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement