English regenerate?

7 replies
Goto Page
To the start Previous 1 Next To the start
21.04.14 08:34:22 pm
Up
FironteS
User
Offline Off
an script where counter terrorist regenerate your hp?
21.04.14 08:35:23 pm
Up
Rainoth
Moderator
Offline Off
Use search function in forum or file archive. You didn't read the guidelines, did you..?
21.04.14 08:45:30 pm
Up
Alistaire
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
addhook('second', '_secondHook')

function _secondHook()
     for _, id in pairs(player(0, 'team2living')) do
          if player(id, 'health') < player(id, 'maxhealth') then
               parse('sethealth '..id..' '..(player(id, 'health') + 1))
          end
     end
end
IMG:http://i.imgur.com/5zhwOTP.png
22.04.14 12:37:59 am
Up
massiveguy
User
Offline Off
@user Alistaire: you forgot counter-terrorist only.
enjoy it before finish
22.04.14 12:50:43 am
Up
sheeL
User
Offline Off
--
edited 1×, last 22.04.14 01:08:12 am
22.04.14 12:55:55 am
Up
Alpha Beta
User
Offline Off
It loops through the team2living table, which contains the IDs of all living CTs.
22.04.14 12:56:11 am
Up
AlcatrazZ
BANNED
Offline Off
Looks at this noobs!:
Code:
player(0,'team2living')
Ban Reason: Multiple Accounts
22.04.14 12:57:46 am
Up
Pseudon
User
Offline Off
I think he wants à script to make the CTs be able to act like doctors.
Quote:
counter terrorist regenerate your hp?
*Empty*
To the start Previous 1 Next To the start