I'm thinkin about it.. - Is it imposible?
#1

Hello
I'm making a TDM mod.
Okay lets tell you what i am thinking..
For example Player's health under 30 , her/his screen can like drunk?
we can make drunk with SetPlayerDrunkLevel but the other one? is it imposible ?
If is it can you send me a template?
Reply
#2

Template?
Anyway you need to use a timer.
Top:
pawn Код:
forward HealthTimer(playerid);
OnGameModeInit:
pawn Код:
SetTimer("HealthTimer",1000,1);
Bottom:
pawn Код:
public HealthTimer(playerid)
{
    new Float:health;
  GetPlayerHealth(playerid,health);
  if (health < 30.0)
  {
    SetPlayerDrunkLevel(playerid,50000);
  }
}
Something like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)