(vehicleid)
vehicleid
The ID of the vehicle to destroy.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/destroyveh", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
DestroyVehicle(vehicleid);
return 1;
}
return 0;
}
The following functions may be useful, as they are related to this function in one way or another.