SA-MP Forums Archive
how to make a /killengine cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to make a /killengine cmd (/showthread.php?tid=502564)



how to make a /killengine cmd - betta - 24.03.2014

How do i make a command called /killengine to stop cars

zcmd cmd needed


Re: how to make a /killengine cmd - Duck4coder - 24.03.2014

Код:
CMD:killengine(playerid, params[])
{
	new VehID = GetPlayerVehicleID(playerid);
	SetVehicleParamsEx(VehID,0,0,0,0,0,0,0);
	return 1;
}



Re: how to make a /killengine cmd - TLN - 24.03.2014

pawn Код:
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;
}
*EDIT*
Too late.