Please need help
#2

something like that: EDIT: sorry i didn't finish yet lol i posted by accident

Код:
//this under defines---------------------------------------------------------------------------
new gPlayerUsingLoopingAnim[MAX_PLAYERS];

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
  gPlayerUsingLoopingAnim[playerid] = 1;
  ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}
//-------------------------------------------------------------------------------------------

public OnPlayerUpdate(playerid)
{
  new Float:health;

  GetPlayerHealth(playerid,health);
  if (health < 20.0)
  {
  new string[256];
  LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // nice anim for this, but change it if you like.
  format(string, sizeof(string), "~p~ Necesitas ayuda!"); // color is purple
  GameTextForPlayer(playerid, string, 3000, 5); // 3000 is 3 second and 5 is the writiing style
  TogglePlayerControllable(playerid, false);

  return 1;
  }

	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	if(gPlayerUsingLoopingAnim[playerid]) {
		gPlayerUsingLoopingAnim[playerid] = 0;
	}

 	return 1;
}
i didn't test it though, tell me if it works. But i think you must do it as a filterscript
Reply


Messages In This Thread
Please need help - by AdrianX9 - 04.04.2010, 14:44
Re: Please need help - by pmk1 - 04.04.2010, 15:23
Re: Please need help - by pmk1 - 04.04.2010, 16:00
Re: Please need help - by AdrianX9 - 04.04.2010, 16:05
Re: Please need help - by pmk1 - 04.04.2010, 16:08
Re: Please need help - by AdrianX9 - 04.04.2010, 16:13
Re: Please need help - by pmk1 - 04.04.2010, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)