24.03.2014, 20:29
How do i make a command called /killengine to stop cars
zcmd cmd needed
zcmd cmd needed
CMD:killengine(playerid, params[]) { new VehID = GetPlayerVehicleID(playerid); SetVehicleParamsEx(VehID,0,0,0,0,0,0,0); return 1; }
CMD:killengine(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
{
SetVehicleParamsEx(vid, 0, lights, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "{FFFFFF}Engine {FF0000}OFF");
}
return 1;
}