OnPlayerKeyStateChange problem and Key Fire
#1

Hi all
My problem is with the Key Fire !
Actualy what i'm looking for is to make , when the playerid click on Fire Key next to a target ! if the target has 0 hp it will return 1; but it's not working! this is not the hole code but the most importan things
ANY suggestions ? ti fix this
Код:
if(newkeys & KEY_FIRE)//tank
{
		new target = GetClosestPlayer(playerid);// this is alrady defined and work perfectly
		new Float:hp, Float:a;
		GetPlayerHealth(target,hp);
		if(hp <= 0) return 1;
		else if(hp > 0) {//blabla codes}
                return 1;
}
Reply


Messages In This Thread
OnPlayerKeyStateChange problem and Key Fire - by Amine_Mejrhirrou - 02.12.2012, 17:38
Re: OnPlayerKeyStateChange problem and Key Fire - by gtakillerIV - 02.12.2012, 17:42
Re : OnPlayerKeyStateChange problem and Key Fire - by Amine_Mejrhirrou - 02.12.2012, 21:21

Forum Jump:


Users browsing this thread: 2 Guest(s)