tessék....
new engine, lights, alarm, doors, bonnet, boot, objective;
#define OFF 0
#define ON 1
if(strcmp(\"/lamp\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOUR_INFORMATION, \"Bekapcsoltad a lámpát!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, ON, alarm, doors, bonnet, boot, objective);
return 1;
}
if(strcmp(\"/lampoff\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOUR_INFORMATION, \"Kikapcsoltad a lámpát!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(strcmp(\"/engine\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF8C00FF, \"Beindítottad a motort!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective);
return 1;
}
if(strcmp(\"/engineoff\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF8C00FF, \"Leállítottad a motort!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective);
return 1;
}