04.01.2014, 20:39
Hello there. I am trying to make a test command for turning on the lights of the vehicle you are currently in. I can not get it to work. Here is how it looks like:
Hope someone can help me
pawn Код:
if (strcmp("/lights", cmdtext, true, 10) == 0)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, 1, alarm, doors, bonnet, boot, objective);
return 1;
}