Qustion..
#2

See.. FIRSTLY use

pawn Код:
if(health>100)

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
Helllo!,


But i fail with "Health" what can i put in? Is this possible to do ??
and i didnt get this question..

if u wanna make a health check timer...

pawn Код:
OnGameModeInit()
{
SetTimer("HealthCheck",10,1);
}
forward HealthCheck();
public HealthCheck()
{
for(new i ; i < MAX_PLAYERS ; i++)
{
if(IsPlayerConnected(i))
{
new Health = GetPlayerHealth(i);
if(Health>100)
{
Ban(i);
}
}
}
}
Now this code .. will check all the time.. ALL PLAYERS.. if any player's health goes above hundread.. he be banned
Reply


Messages In This Thread
Qustion.. - by [M.A]Angel[M.A] - 24.10.2011, 19:44
Re: Qustion.. - by spd_sahil - 24.10.2011, 19:58
Re : Qustion.. - by [M.A]Angel[M.A] - 24.10.2011, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)