cmd:killengine
#5

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;

if(strcmp(cmd, "/stopengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
        }
        return 1;
    }
Although this might not be exactly what you're looking for i'm sure you can edit it.

Credits to test_cmds.pwn


Edit: o looks like MCZOFT got to it before me, good luck
Reply


Messages In This Thread
cmd:killengine - by matthew1211 - 26.01.2014, 15:23
Re : cmd:killengine - by MCZOFT - 26.01.2014, 15:29
Re: cmd:killengine - by matthew1211 - 26.01.2014, 15:34
Re : cmd:killengine - by MCZOFT - 26.01.2014, 15:38
Re: cmd:killengine - by Flake. - 26.01.2014, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)