flip when pressing mmb
#1

i made a code to flip a car when pressing mmb but for some reason it isnt working;

Код:
		if(newkeys == KEY_LOOK_BEHIND)

	{
		if(IsPlayerInAnyVehicle(playerid))
		{
			{
			new Float:PX, Float:PY, Float:PZ, Float:PA;
			GetPlayerPos(playerid, PX, PY, PZ);
			GetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
			SetVehiclePos(GetPlayerVehicleID(playerid), PX, PY, PZ+1);
			SetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
			SendClientMessage(playerid, COLOR_GREEN,"Vehicle Fliped!");
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
			}
		}
	}
can someone please help?
Reply


Messages In This Thread
flip when pressing mmb - by swredder - 08.05.2010, 09:14
Re: flip when pressing mmb - by cessil - 08.05.2010, 09:22
Re: flip when pressing mmb - by swredder - 08.05.2010, 09:23
Re: flip when pressing mmb - by cessil - 08.05.2010, 10:10
Re: flip when pressing mmb - by Mujib - 08.05.2010, 10:25
Re: flip when pressing mmb - by swredder - 08.05.2010, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)