English Help lua admin

8 replies
Goto Page
To the start Previous 1 Next To the start
16.05.11 12:27:25 am
Up
Noswear222
User
Offline Off
Hello unreal
I wanted a help when the players were shooting the admin and the weapon damage decreased, but only with the admin not to the players I'll give an example:
- Unreal Hello, my example

mp_wpndmg "..wpn.." .." "..dmg.."

As this example will happen with the players and admin, but I wanted just to the admin If you can not answer me
No fuck me
16.05.11 01:49:20 am
Up
J4x
User
Offline Off
maybe this can help:


Code:
1
2
3
4
5
6
7
8
9
10
USGN = {your account}

addhook("attack","adminz")
function adminz(id)
    for i,v in pairs (USGN) do
    if player(id,"usgn) == v then
    parse("mp_wpndmg "..wpn.." .." "..dmg..")
              end
        end
end
16.05.11 01:52:34 am
Up
Noswear222
User
Offline Off
.....
edited 1×, last 16.05.11 05:31:16 pm
No fuck me
16.05.11 07:47:34 am
Up
EngiN33R
Moderator
Offline Off
Except that will increase weapon damage for all players. I recommend using hit hook and sethealth command.
I code, therefore I exist.
16.05.11 11:10:57 pm
Up
J4x
User
Offline Off
Fixed and tabbed.
Code:
1
2
3
4
5
6
7
8
9
10
USGN = {your account}

addhook("hit","adminz")
function adminz(id,source,weapon,hpdmg,apdmg)
     for i,v in pairs (USGN) do
     if player(id,"usgn") == v then
parse("sethealth "..id.." "..(player(id,"health")-(hpdmg*2)))
          end
     end
end
edited 1×, last 17.05.11 10:59:25 pm
17.05.11 02:06:58 am
Up
Dovahkin
User
Offline Off
You fixed it and it's fail what do you mean healt? lol fix that please.
IMG:http://i561.photobucket.com/albums/ss59/killerboy_04/76561198036665859.png
17.05.11 06:31:55 am
Up
EngiN33R
Moderator
Offline Off
Tabbed my ass. And I don't think he wanted that admins kill players right away, maybe try using
Code:
1
parse("sethealth "..id.." "..(player(id,"health")-(hpdmg*2)))
I code, therefore I exist.
17.05.11 03:08:34 pm
Up
RAVENOUS
BANNED
Offline Off
user J4x has written:
Fixed and tabbed.
Code:
1
2
3
4
5
6
7
8
9
10
USGN = {your account}

addhook("hit","adminz")
function adminz(id,source,weapon,hpdmg,apdmg)
     for i,v in pairs (USGN) do
          if player(id,"usgn") == v then
               parse("sethealt "..id.." 0")
          end
     end
end


tabbed and tabbed
"A work of art is the unique result of a unique temperament." - Oscar Wilde
17.05.11 03:15:16 pm
Up
Yates
Reviewer
Offline Off
Linkin forgot the h behind the sethealth anyway.
To the start Previous 1 Next To the start