How to use "DestroyVehicle" whitout player in vehicle?
#22

this is the best i think

PHP Code:
CMD:adestroycar(playeridparams[])
{
    new 
TargetID,destroyveh,str1[128];
    if(
sscanf(params"u"TargetID)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /adestroycar [id]");
     if(
TargetID == INVALID_PLAYER_ID || !IsPlayerConnected(TargetID)) return SendClientMessage(playeridCOLOR_RED"That Player Is Not Connected");
    if(
GetPlayerState(TargetID) != PLAYER_STATE_DRIVER) return SendClientMessage(playeridCOLOR_RED"Player Is Not In A Vehicle.");
    else
    {
        
format(str1,sizeof(str1),"%s (%d)'s Vehicle Has Been Destroyed.",pname(TargetID),TargetID);
        
SendClientMessage(playerid,COLOR_HOTPINK,str1);
        
destroyveh GetPlayerVehicleID(TargetID);
        
DestroyVehicle(destroyveh);
    }
     return 
1;

Reply


Messages In This Thread
How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 18:01
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:08
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:16
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:20
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 19:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 20:38
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 21:11
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:13
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:33
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 21:55
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 22:47
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 23:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by ShihabSoft - 01.06.2017, 00:00
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 01.06.2017, 01:03
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 01.06.2017, 05:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 01.06.2017, 21:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JuzDoiT - 02.06.2017, 20:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 02.06.2017, 21:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 06.06.2017, 01:58

Forum Jump:


Users browsing this thread: 2 Guest(s)