SA-MP Forums Archive
/engine system help - 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: /engine system help (/showthread.php?tid=390809)



/engine system help - masca12 - 08.11.2012

plz help me with system engine off/on to command /engine on/of engines plz start stop engine to command /engine plz script thx


Re: /engine system help - Glad2BeHere - 08.11.2012

pawn Код:
CMD:engine(playerid, params[])
{
    new engine, lights, alarm, doors, bonnet, boot, objective, vehicleid, string[128];
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You are not driving a vehicle.");
    if(vehicleid == 509 || vehicleid == 481 || vehicleid == 510) return SendClientMessage(playerid, -1, "Bicycles have no engine.");
    vehicleid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(!engine)
    {
        SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
    }
    else
    {
        SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
    }
    return 1;
}



Re: /engine system help - masca12 - 08.11.2012

emd command /engine no have plz post fs


Re: /engine system help - masca12 - 08.11.2012

plz complet /engine fs


Re: /engine system help - Glad2BeHere - 08.11.2012

what english please and this is /engine command have u heard of zcmd :l


Re: /engine system help - masca12 - 08.11.2012

sorry im romanian im need command complete /engine for on/off engine ok plz all file scipt exameple
Код:
SencCommand '; ! "/engine" stop/start engine whit and write your engine is on / off. and writes you give / write Name X engine eg masca12 start / stop engine! : D plz help



Re: /engine system help - iGamerX - 08.11.2012

Dude see here: Click.
Note: you need zcmd(Click) and a_samp(Click) includes.

Good luck!