25.07.2009, 10:33
Hello,
I was trying some stuff with OnPlayerStateInfo;
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 ?
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; }
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 ?