Admin Cars
#2

Command for destroying vehicle if player is in a vehicle.
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;
}
Sorry if mistakes are there,because Im doing this through my mobile.
Reply


Messages In This Thread
Admin Cars - by _Khaled_ - 28.08.2012, 13:34
Re: Admin Cars - by Lordzy - 28.08.2012, 13:43
Re: Admin Cars - by _Khaled_ - 28.08.2012, 13:44
Re: Admin Cars - by Lordzy - 28.08.2012, 13:54
Re: Admin Cars - by _Khaled_ - 28.08.2012, 13:58
Re: Admin Cars - by Jarnu - 28.08.2012, 14:02
Re: Admin Cars - by Lordzy - 28.08.2012, 14:02
Re: Admin Cars - by _Khaled_ - 28.08.2012, 14:06
Re: Admin Cars - by Jarnu - 28.08.2012, 14:09
Re: Admin Cars - by _Khaled_ - 28.08.2012, 14:15

Forum Jump:


Users browsing this thread: 2 Guest(s)