Something is wrong with bind
#1

Код:
if (newkeys==KEY_CROUCH)
	{
        new engine,lights,alarm,doors,bonnet,boot,objective;
    	GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
		if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
		{
			if(lights != 1)
   			{
      			lights = 1;
         		SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
           		SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's lights on!");
               	return 1;
           	}
            else
            {
            	lights = 0;
             	SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
              	SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's lights off!");
                return 1;
      		}
		}
		return lights;
	}
i just made this but i don't know why is dosen't work
Reply


Messages In This Thread
Something is wrong with bind - by qUick1337 - 18.08.2011, 00:28
Re: Something is wrong with bind - by =WoR=Varth - 18.08.2011, 02:11
Re: Something is wrong with bind - by qUick1337 - 18.08.2011, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)