OnPlayerInfoChange not working ?
#1

Hello,

I was trying some stuff with OnPlayerStateInfo;
Код:
public OnPlayerInfoChange(playerid)
{

	new Float:health;
  GetPlayerHealth(playerid,health);
  if (health < 50.0)
  {
  new currentState = GetPlayerState(playerid);
  if (currentState == PLAYER_STATE_ONFOOT)
	{     	//
	SendClientMessage(playerid,0xDEEE20FF,"working now");
	}

}
	//
 
	return 1;
}
I wanted to code something that makes when a players health gets low. a Animation like 'injured' or handsup will be called.
As you can see i tried if playerinfo change works..i guess its not..i dont have compile warnings or errors though.

Maybe someone can tell me how i can make this work ?

Reply


Messages In This Thread
OnPlayerInfoChange not working ? - by boelie - 25.07.2009, 10:33
Re: OnPlayerInfoChange not working ? - by yezizhu - 25.07.2009, 10:47
Re: OnPlayerInfoChange not working ? - by boelie - 25.07.2009, 10:51
Re: OnPlayerInfoChange not working ? - by yezizhu - 25.07.2009, 11:16
Re: OnPlayerInfoChange not working ? - by boelie - 25.07.2009, 11:25
Re: OnPlayerInfoChange not working ? - by paytas - 25.07.2009, 11:35
Re: OnPlayerInfoChange not working ? - by boelie - 26.07.2009, 11:42

Forum Jump:


Users browsing this thread: 4 Guest(s)