How to do this when in vehicle?
#7

Quote:
Originally Posted by [AC
Etch ]
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  new vehicleid = GetPlayerVehicleID(playerid);
  new modelid = GetVehicleModel(vehicleid);
	if((newkeys & KEY_HANDBRAKE))
	{
	  if(modelid == 476 || modelid == 520) // rustler and hydra
	  {
  	  GivePlayerWeapon(playerid,46,1);
	    new Float:pos[3]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
	    SetPlayerPos(playerid,pos[0],pos[1],pos[2]+400);
	    GameTextForPlayer(playerid, "~R~Ejecting..", 5000, 5);
	  }
	}
	return 1;
}
No thats unrealistic, I need SetPlayerVelocity
Reply


Messages In This Thread
How to do this when in vehicle? - by Torran - 25.02.2010, 14:35
Re: How to do this when in vehicle? - by Virtual1ty - 25.02.2010, 14:41
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 14:43
Re: How to do this when in vehicle? - by aircombat - 25.02.2010, 16:06
Re: How to do this when in vehicle? - by Kurence - 25.02.2010, 16:08
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 16:13
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)