English Bring Player when throw Gut--

8 replies
Goto Page
To the start Previous 1 Next To the start
18.04.18 10:55:04 am
Up
Man Of Steel
User
Offline Off
Hello Everyone,

I Have no time to spent learn lua for my server usable scripts,So i always demand for that.

I Thought That whenever player has dead, You can bring your cronies for use !bring <id> of command, Bet that you have a gut bomb for bring.

i.e player have gut and he will type !bring <id> and throw it, So according player id he will Bring again but its necessary for having a Gut bomb.

Does it possible, Anybody can make this script for me
Thanks for attension.
FRiendly boYy.
18.04.18 11:10:26 am
Up
Gaios
Security Supporter
Offline Off
I don't really get you.. what do you exactly want..
18.04.18 11:20:44 am
Up
Yates
Reviewer
Offline Off
@user Gaios: He probably wants people to be able to spawn other players as long as they have a gut bomb.
18.04.18 12:05:14 pm
Up
TrialAndError
User
Online On
@user Yates: And at the same time, they have to throw it.
18.04.18 03:36:01 pm
Up
Man Of Steel
User
Offline Off
...........

Guys you don't understand what i exactly want?
FRiendly boYy.
18.04.18 03:41:20 pm
Up
SANTER
User
Offline Off
he wants to relive players with Gutbomb
18.04.18 03:57:23 pm
Up
Rainoth
Moderator
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
target = {}
addhook("say","_s")
function _s(id,t)
     if t:sub(1,6) == "!bring" and tonumber(t:sub(8,9)) then
          target[id] = tonumber(t:sub(8,9))
     end
end

addhook("projectile","_prj")
function _prj(id,w,x,y)
     if w == 86 then
          if not (player(target[id],"health") > 0) then
               parse("spawnplayer "..target[id].." "..x.." "..y)
          end
     end
end
18.04.18 07:24:22 pm
Up
Man Of Steel
User
Offline Off
Hi @user Rainoth:
Thanks a lot of help me, Its really Working Good
FRiendly boYy.
21.04.18 06:19:06 pm
Up
Rainoth
Moderator
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
target = {}
addhook("say","_s")
function _s(id,t)
     if t:sub(1,6) == "!bring" and tonumber(t:sub(8,9)) and player(id,"team")==player(tonumber(t:sub(8,9)),"team") then
          target[id] = tonumber(t:sub(8,9))
     end
end

addhook("projectile","_prj")
function _prj(id,w,x,y)
     if w == 86 then
          if not (player(target[id],"health") > 0) then
               parse("spawnplayer "..target[id].." "..x.." "..y)
          end
     end
end

Adding another condition cause he wrote to me on private message to check if same team.
To the start Previous 1 Next To the start