Detecting opened parachute
#4

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  new Float:x,Float:y,Float:z;
  GetPlayerPos(playerid,x,y,z);
  if(newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == WEAPON_PARACHUTE && z > /* (MINIMUM HEIGHT)*/)
  {
     OnPlayerOpenParachute(playerid);
  }
  return 1;
}

public OnPlayerOpenParachute(playerid)
{
  [...]
}
Try this, it should work.

EDIT: Wait, if a player is on a high place, and clicks with that weapons there can be errors....
There is no a solution. For what do you need it?
Reply


Messages In This Thread
Detecting opened parachute - by cmg4life - 26.01.2011, 18:57
Re: Detecting opened parachute - by OldDirtyBastard - 26.01.2011, 19:09
Re: Detecting opened parachute - by cmg4life - 26.01.2011, 19:14
Re: Detecting opened parachute - by Sasino97 - 26.01.2011, 19:15
Re: Detecting opened parachute - by Vince - 26.01.2011, 19:19
Re: Detecting opened parachute - by cmg4life - 26.01.2011, 19:25
Re: Detecting opened parachute - by OldDirtyBastard - 26.01.2011, 19:27
Re: Detecting opened parachute - by cmg4life - 26.01.2011, 19:30
Re: Detecting opened parachute - by Mean - 07.02.2011, 18:11
Re: Detecting opened parachute - by -Rebel Son- - 07.02.2011, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)