Explosion with RC_TANK
#1

i want when player types RCTRL then it create explosion infront of the RC_TANK if the player is in RC_TANK
but there is something wrong thats why its not creating explosion

help me

Код:
//=============================================================//
#include <a_samp>
#pragma tabsize 0
#define RC_TANK   564

#define HOLDING(%0) \
	((newkeys & (%0)) == (%0))
new Float:x, Float:y, Float:z, Float:angle;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (HOLDING(KEY_FIRE))
	{
		new
			vehicleid = GetPlayerVehicleID(playerid);
		if (vehicleid == 564)
		{
	    GetVehiclePos(vehicleid, x,y,z);
			CreateExplosion(x, y , z -0.25, 12, angle);
		}
	}
	return 1;
}
//==========================================================//
Reply


Messages In This Thread
Explosion with RC_TANK - by _Sami_ - 11.12.2009, 05:36
Re: Explosion with RC_TANK - by Joe Staff - 11.12.2009, 06:09
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:38
Re: Explosion with RC_TANK - by yom - 11.12.2009, 06:41
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:44
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:59
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 10:04

Forum Jump:


Users browsing this thread: 2 Guest(s)