Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:trackcar(playerid, params[])
- {
- new str[500];
- new count=0;
- for (new i = 0; i < MAX_DYNAMIC_CARS; i++)
- {
- if(Car_IsOwner(playerid, i))
- {
- new float:fX,float:fY,float:fZ;
- GetVehiclePos(CarData[i][carVehicle], fX, fY, fZ);
- new str2[128];
- format(str2,sizeof(str2)," %s | Location: %s \n", ReturnVehicleModelName(CarData[i][carModel]),GetLocation(fX, fY, fZ));
- strcat(str, str2);
- count++;
- }
- }
- if(count==0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't own any vehicles.");
- }
- else{
- ShowPlayerDialog(playerid, 557,DIALOG_STYLE_LIST,"Select a car to get it's location",str,"Track","Exit");
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment