[help] engine
#8

Quote:

CMD:engine(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "You need to be the driver of the vehicle");
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == 1)
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid, COLOR_COOLBLUE, "You have turned the engine on");
}
else
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid, COLOR_COOLBLUE, "You have turned the engine off");
}
return 1;
}

Heres an Engine Command
Reply


Messages In This Thread
[help] engine - by ratxrat - 07.02.2016, 18:10
Re: [help] engine - by mirou123 - 07.02.2016, 18:16
Re: [help] engine - by ratxrat - 07.02.2016, 18:17
Re: [help] engine - by mirou123 - 07.02.2016, 18:21
Re: [help] engine - by Joron - 07.02.2016, 18:40
Re: [help] engine - by mirou123 - 07.02.2016, 18:48
Re: [help] engine - by ratxrat - 07.02.2016, 18:55
Re: [help] engine - by Joron - 07.02.2016, 19:01
Re: [help] engine - by ratxrat - 07.02.2016, 19:09
Re: [help] engine - by mirou123 - 07.02.2016, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)