Use key for cmd
#4

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{  
  if ((newkeys & KEY_LOOK_BEHIND) && !(oldkeys & KEY_LOOK_BEHIND))
  if(EngineSTATE[vid] == 0)
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 1;
SendClientMessage(playerid, -1, "You have started the engine!");
}
else
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 0;
SendClientMessage(playerid, -1, "You have stopped the vehicle!");
	return 1;
}
Try this
Reply


Messages In This Thread
Use key for cmd - by mamalzeus - 19.03.2015, 09:43
AW: Use key for cmd - by Kaliber - 19.03.2015, 09:44
Re: AW: Use key for cmd - by mamalzeus - 19.03.2015, 10:51
Re: Use key for cmd - by Karan007 - 19.03.2015, 10:58
Re: Use key for cmd - by mamalzeus - 19.03.2015, 11:10
AW: Re: AW: Use key for cmd - by Kaliber - 19.03.2015, 11:27
Re: AW: Re: AW: Use key for cmd - by mamalzeus - 19.03.2015, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)