Need help this this /hptest
#5

Quote:
Originally Posted by Celson
Comon does anybody have any suggestions, or does anybody know how I could do it with a timer?
You can use wait func.

try to make it like this :

Код:
  			
if(IsPlayerConnected(pid))
{
	new Float:Health;
	new Float:Health2;
	GetPlayerHealth(pid,Health);
	format(message,128,"Current HP: %f",Health);
	SendClientMessage(playerid,COLOR_YELLOW,message);
	SetPlayerHealth(pid,Health-2);
	if(wait(1000)){
		GetPlayerHealth(pid,Health2);
		format(message2,128,"New HP: %f",Health2);
		SendClientMessage(playerid,COLOR_YELLOW,message2);
	}
	return 1;
}
Reply


Messages In This Thread
Need help this this /hptest - by Celson - 07.02.2009, 13:03
Re: Need help this this /hptest - by luby - 07.02.2009, 13:08
Re: Need help this this /hptest - by Celson - 07.02.2009, 13:12
Re: Need help this this /hptest - by Celson - 08.02.2009, 02:10
Re: Need help this this /hptest - by luby - 08.02.2009, 11:31
Re: Need help this this /hptest - by Extremo - 08.02.2009, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)