Doctor script
#10

Quote:
Originally Posted by GrOobY
Посмотреть сообщение
working fine how to stop on hp 100 ?
An example:
pawn Код:
new
    heal_Timer
;

// Where you start the timer
heal_Timer = SetTimer( ... );
// OR
heal_Timer = SetTimerEx( ... );
// Depending on what you want

// In the public of the Timer (either looping through connected players or passing parameter in SetTimerEx)
new
    Float: hp
;
GetPlayerHealth( playerid, hp );
SetPlayerHealth( playerid, hp + 2 );
if( hp + 2 >= 100 ) KillTimer( heal_Timer );
Reply


Messages In This Thread
Doctor script - by GrOobY - 17.09.2013, 13:17
Re: Doctor script - by alinategh - 17.09.2013, 13:26
Re: Doctor script - by Konstantinos - 17.09.2013, 13:28
Re: Doctor script - by alinategh - 17.09.2013, 13:31
Re: Doctor script - by GrOobY - 17.09.2013, 13:38
Re: Doctor script - by alinategh - 17.09.2013, 13:45
Re: Doctor script - by therainycat - 17.09.2013, 13:45
Re: Doctor script - by GrOobY - 17.09.2013, 13:52
Re: Doctor script - by alinategh - 17.09.2013, 14:08
Re: Doctor script - by Konstantinos - 17.09.2013, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)