28.08.2012, 13:43
Command for destroying vehicle if player is in a vehicle.
Sorry if mistakes are there,because Im doing this through my mobile.
pawn Код:
dcmd_destroyv(playerid,params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000, "You must be in a vehicle to use this command.");
new pVeh;
pVeh = GetPlayerVehicleID(playerid);
DestroyVehicle(pVeh);
return 1;
}