PHP Code:
CMD:oldcar(playerid, params[])
{
new string[128];
if(!gLastCar[playerid]) return SendClientMessageEx(playerid, COLOR_GREY, "You have not driven a vehicle yet.");
format(string, sizeof(string), "Your last driven vehicle was a %s (Model: %d -- ID: %d)", GetVehicleName(gLastCar[playerid]), GetVehicleModel(gLastCar[playerid]), gLastCar[playerid]);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
I want a cmd that can check the last driver that used the car /lastdriver.