02.12.2012, 17:38
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
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; }