English Healing player from the list

9 replies
Goto Page
To the start Previous 1 Next To the start
28.04.11 03:34:20 am
Up
Ayudon
User
Offline Off
Hi again, im back LOL! I was just looking for a script that.. well, an example:
If a player joins the server with the usgn #12345 (previously listed in lua), then that player can be healed if being hit by a wrench! (+3 hp per hit).
That was all
c8
28.04.11 04:51:09 am
Up
Dovahkin
User
Offline Off
Here i hope it works for you

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
citizen={43653} -- and the people who come before please write it here.

addhook("join","lolz")
function lolz(id)
     for _,usgn in ipairs (citizen) do
          if player(id,'usgn') == usgn then
               msg (player(id,"name").." is back!@C")
          end
     end
end

addhook("hit","lol")
function lol(id,source,weapon,hpdmg)
     if(weapon==74) then
          parse("sethealth "..id.." "..player(id,"health")+3)
     end
end

addhook("minute","lolc")
function lolc(id)
     for _,usgn in ipairs (citizen) do
          if player(id,'usgn') == usgn then
               msg (player(id,"name").." Was here before!!@C") --put the people who come before!
          end
     end
end


Im sure it well work!
edited 2×, last 28.04.11 05:05:03 am
IMG:http://i561.photobucket.com/albums/ss59/killerboy_04/76561198036665859.png
28.04.11 12:38:15 pm
Up
Starkkz
Moderator
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Heal_Victims = {12345}

function table.find(array,value)
     for k, v in pairs(array) do
          if v == value then
               return k
          end
     end
     return false
end

addhook("hit","onHit")
function onHit(id,source,wpn,hpdmg,apdmg)
     if wpn == 74 then
          if table.find(Heal_Victims,player(id,"usgn")) then
               parse("sethealth "..id.." "..player(id,"health")+3)
          end
     end
end
lol
28.04.11 02:52:01 pm
Up
Geez
GAME BANNED
Offline Off
Shit thread title
28.04.11 02:53:27 pm
Up
Yasday
User
Offline Off
user Geez has written:
Shit thread title

Shit post.
28.04.11 03:18:48 pm
Up
Geez
GAME BANNED
Offline Off
user Yasday has written:
user Geez has written:
Shit thread title

Shit post.

Shit off-topic

Admin/mod comment:

6h tempban for you...
28.04.11 03:58:59 pm
Up
Assassin moder
User
Offline Off
user Geez has written:
user Yasday has written:
user Geez has written:
Shit thread title

Shit post.

Shit off-topic


Shit SPAM!!

Admin/mod comment:

6h tempban for you...
28.04.11 04:02:32 pm
Up
Yates
Reviewer
Offline Off
Man, didn't you see the spam violations they got? If you had any brain you would have not just posted that.

Admin/mod comment:

That was unnecessary.
28.04.11 06:31:52 pm
Up
Starkkz
Moderator
Offline Off
That's not nice, please follow the rules. Do NOT spam
lol

Admin/mod comment:

please follow the rules. do not behave like a moderator... oh man...
28.04.11 06:33:33 pm
Up
DC
Admin
Offline Off
I'm fucking closing this now because everyone around here seems to be stupid.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start