new vehicleID = GetPlayerVehicleID(playerid);
#if defined TEMP_PARK
VehicleInfo[vehicleID][x_spawn] = VehicleInfo[vehicleID][ox_spawn];
VehicleInfo[vehicleID][y_spawn] = VehicleInfo[vehicleID][oy_spawn];
VehicleInfo[vehicleID][z_spawn] = VehicleInfo[vehicleID][oz_spawn];
VehicleInfo[vehicleID][za_spawn] = VehicleInfo[vehicleID][oza_spawn];
#endif
if (strcmp(VehicleInfo[vehicleID][owner],PlayerName2(playerid),false) == 0) {
SetVehicleToRespawn(vehicleID);
SetVehicleVirtualWorld(vehicleID,10);
SetTimerEx("EraseVeh",5000,0,"i",vehicleID);
if(AccInfo[playerid][vowned] == vehicleID){
AccInfo[playerid][vowner] = 0;
AccInfo[playerid][vowned] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #1, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned2] == vehicleID){
AccInfo[playerid][vowner2] = 0;
AccInfo[playerid][vowned2] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #2, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned3] == vehicleID){
AccInfo[playerid][vowner3] = 0;
AccInfo[playerid][vowned3] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #3, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned4] == vehicleID){
AccInfo[playerid][vowner4] = 0;
AccInfo[playerid][vowned4] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #4, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned5] == vehicleID){
AccInfo[playerid][vowner5] = 0;
AccInfo[playerid][vowned5] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #5, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned6] == vehicleID){
AccInfo[playerid][vowner6] = 0;
AccInfo[playerid][vowned6] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #6, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned7] == vehicleID){
AccInfo[playerid][vowner7] = 0;
AccInfo[playerid][vowned7] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #7, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned8] == vehicleID){
AccInfo[playerid][vowner8] = 0;
AccInfo[playerid][vowned8] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #8, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned9] == vehicleID){
AccInfo[playerid][vowner9] = 0;
AccInfo[playerid][vowned9] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #9, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned10] == vehicleID){
AccInfo[playerid][vowner10] = 0;
AccInfo[playerid][vowned10] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #10, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
#if defined EXTRA_V_SLOTS
else if(AccInfo[playerid][vowned11] == vehicleID){
AccInfo[playerid][vowner11] = 0;
AccInfo[playerid][vowned11] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #11, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned12] == vehicleID){
AccInfo[playerid][vowner12] = 0;
AccInfo[playerid][vowned12] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #12, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned13] == vehicleID){
AccInfo[playerid][vowner13] = 0;
AccInfo[playerid][vowned13] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #13, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned14] == vehicleID){
AccInfo[playerid][vowner14] = 0;
AccInfo[playerid][vowned14] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #14, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
else if(AccInfo[playerid][vowned15] == vehicleID){
AccInfo[playerid][vowner15] = 0;
AccInfo[playerid][vowned15] = 0;
format(string, sizeof(string), "You just sold your %s for $%d, From Calling Slot #15, enjoy the walk!!", VehicleInfo[vehicleID][vname], VehicleInfo[vehicleID][vehiclecost]);
Inter_SendClientMessage(playerid, COLOR_BRIGHTRED, string);
}
#endif