Szejvusz!!
#include a_samp
#include zcmd
CMD:lampa(playerid, params[])
{if(IsPlayerInAnyVehicle(playerid)){
new vehicleid = GetPlayerVehicleID(playerid);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(lights == 1){
SetVehicleParamsEx(vehicleid, engine, 0, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid,-1, \"Lámpa Kikapcsolva\");}else{
SetVehicleParamsEx(vehicleid, engine, 1, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid,-1,\"Lámpa Bekapcsolva\");}
}else{SendClientMessage(playerid,-1, \"Ez Kocsi Parancs!\");}
return 1;}
NEM Teszteltem
Szijjja, elég undojító a kódod!