Health problem
#6

make a timer for a player you want to stop this and make it set the players health to 100

pawn Код:
new playergod[playerid];
//UnderGameModeInit
SetTimer("God",1000,1);
//Any where
forward God();
public God()
{
  for (new i = 0;i < MAX_PLAYERS;i ++)
  {
    if (playergod[i] == 1)
    {
      SetPlayerHealth(i,100);
    }
  }
  return 1;
}
//OnPlayerCommandText
if(strcmp(cmdtext, "/god", true) == 0)
{
  playergod[playerid] = 1;
}

if(strcmp(cmdtext, "/notgod", true) == 0)
{
  playergod[playerid] = 0;
}
Reply


Messages In This Thread
Health problem - by leon_sharped - 06.02.2009, 18:09
Re: Health problem - by My_Waffles_Bitch_L0L - 06.02.2009, 18:21
Re: Health problem - by leon_sharped - 06.02.2009, 18:23
Re: Health problem - by kc - 06.02.2009, 18:24
Re: Health problem - by leon_sharped - 06.02.2009, 18:28
Re: Health problem - by MPKaboose - 06.02.2009, 18:30
Re: Health problem - by leon_sharped - 06.02.2009, 18:42
Re: Health problem - by MPKaboose - 06.02.2009, 18:44
Re: Health problem - by leon_sharped - 06.02.2009, 18:46
Re: Health problem - by Jefff - 06.02.2009, 18:48
Re: Health problem - by leon_sharped - 06.02.2009, 18:51
Re: Health problem - by MPKaboose - 06.02.2009, 18:55
Re: Health problem - by MPKaboose - 06.02.2009, 18:56
Re: Health problem - by Streetplaya - 06.02.2009, 19:32
Re: Health problem - by MPKaboose - 06.02.2009, 19:39
Re: Health problem - by Mikep - 06.02.2009, 19:44
Re: Health problem - by Lazarus - 06.02.2009, 19:45
Re: Health problem - by MPKaboose - 06.02.2009, 20:12
Re: Health problem - by Streetplaya - 06.02.2009, 20:16
Re: Health problem - by Mikep - 06.02.2009, 20:31
Re: Health problem - by MPKaboose - 06.02.2009, 20:31
Re: Health problem - by Mikep - 06.02.2009, 20:32
Re: Health problem - by MPKaboose - 06.02.2009, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)