15.01.2011, 17:47
Hi I made a /hood /boot and /light command but none of them works..
I used this code:
boot and lights are made in the same way (just that 0 and 1 are used for boot/lights)...
what's wrong?
I used this code:
Код:
dcmd_hood(playerid, params[]) { #pragma unused params if(Logged(playerid)){ if(IsPlayerInAnyVehicle(playerid)){ new vehicleid, engine, lights, alarm, doors, bonnet, boot, objective; vehicleid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); if(bonnet == 1){ SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 0, boot, objective); }else if(bonnet == 0){ SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 1, boot, objective); } } } return 1; }
what's wrong?