05.03.2016, 09:26
hi i need a samll help ! i
how to make this command to teleport vehicle to my location instead of making cp in car loc ??
here is the code
how to make this command to teleport vehicle to my location instead of making cp in car loc ??
here is the code
Код:
CMD:trackcar(playerid, params[])
{
if(TrackCar[playerid])
{
TrackCar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You are not tracking your vehicle anymore");
return 1;
}
new playername[24];
GetPlayerName(playerid, playername, sizeof(playername));
new info[256], bool:found;
for(new i=1; i < MAX_DVEHICLES; i++)
{
if(VehicleCreated[i] == VEHICLE_PLAYER && strcmp(VehicleOwner[i], playername) == 0)
{
found = true;
format(info, sizeof(info), "%sID: %d Name: %s\n", info, i, VehicleNames[VehicleModel[i]-400]);
}
}
if(!found) return SendClientMessage(playerid, COLOR_RED, "You don't have any vehicles!");
ShowPlayerDialog(playerid, DIALOG_FINDVEHICLE, DIALOG_STYLE_LIST, "Find Your Vehicle", info, "Find", "Cancel");
return 1;
}



??