how to make a /killengine cmd
#1

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

zcmd cmd needed
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)