Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_CLAN_VEHICLES:
- {
- if(!response) ShowPlayerDialogEx(playerid, DIALOG_CLAN, DIALOG_STYLE_LIST, "Clan", "Clan Help\nClan Members\nClan Settings\nClan Tag\nClan Safebox\nClan Vehicles", "Select", "Close");
- else
- {
- switch(listitem)
- {
- case 0:
- {
- new masina1[256],masina[1000],count=0;
- for(new id; id < 5; id++)
- {
- if(ClanInfo[PlayerInfo[playerid][pClan]][cCar][id] != -1) count++;
- }
- if(count == 0) return SendClientMessage(playerid, -1, "This clan don't own any cars.");
- format(masina1, sizeof(masina1), "Vehicle\tSqlID\tStatus\n");
- strcat(masina, masina1);
- for(new id; id < 5; id++)
- {
- if(ClanInfo[PlayerInfo[playerid][pClan]][cCar][id] != -1)
- {
- if(ClanInfo[PlayerInfo[playerid][pClan]][cCarID][id] != 0)
- {
- format(masina1, sizeof(masina1), "{FFFFFF}%s\t%d\t{0C370A}(spawned) \n",aVehicleNames[ClanInfo[PlayerInfo[playerid][pClan]][cCarModel][id] - 400],ClanInfo[PlayerInfo[playerid][pClan]][cCar][id]);
- strcat(masina, masina1);
- }
- else
- {
- here is problem -- format(masina1, sizeof(masina1), "{FFFFFF}%s\t%d\t{FB0404}(despawned)\n",aVehicleNames[ClanInfo[PlayerInfo[playerid][pClan]][cCarModel][id] - 400],ClanInfo[PlayerInfo[playerid][pClan]][cCar][id]);
- strcat(masina, masina1);
- }
- count++;
- }
- }
- ShowPlayerDialogEx(playerid,DIALOG_CLAN_VEHSPW, DIALOG_STYLE_TABLIST_HEADERS,"Manage clan vehicles",masina,"Select","Exit");
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCRank] < 7) return SendClientMessage(playerid, -1, "You need to be rank 7 in this clan.");
- ShowPlayerDialogEx(playerid, DIALOG_CLAN_VEHBUY, DIALOG_STYLE_TABLIST_HEADERS, "Clan vehicle buy","Vehicle\tPrice\nTurismo\t500.000$\nSultan\t750.000$\nBullet\t1.000.000$\nInfernus\t3.000.000$", "Select", "Back");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement