English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 248 249 250 ... 338 339 Next To the start
01.09.10 02:25:27 pm
Up
Blacko
User
Offline Off
Hi all, I search the script who allows CT to cross walls, fast please !
And I want a script who allows to choose to build a turret, a double turrets or triple turrets in a menu !
Please help, i need these scripts !
Thanks you !
IMG:http://www.web-modules.net/upload/cache/userbar/123/452.gif
IMG:http://www.web-modules.net/upload/cache/userbar/124/277.gif
Up
Aqua-
User
Offline Off
Code:
1
2
3
4
5
6
7
addhook("hit","ham_hit")
function ham_hit(weapon, id, source)
     if(weapon>86) then
          parse("sethealth "..source.." "..player(source,"health")+math.random(10,20))
          msg2(source,"You have eaten a hamburger!")
     end
end


More >
IMG:http://i41.tinypic.com/wrf2q9.png
01.09.10 03:06:27 pm
Up
Soja1997
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("hit","healammo")
function healammo(victim,source,weapon)
     if player(victim,"team") == player(source,"team") then
          if weapon == 75 then
               parse("spawnitem 65 "..player(source,"tilex").." "..player(source,"tiley"))
               return 1
          elseif weapon == 86 then
               parse("spawnitem 61 "..player(source,"tilex").." "..player(source,"tiley"))
               parse("spawnitem 62 "..player(source,"tilex").." "..player(source,"tiley"))
               return 1
          end
     end
end

WHERE snowball crashes there appears bandage
and WHERE hutbomb crashes there appears primary and secondary ammo
AND I NEED Working UNLIMITED GUTBOMBS AND UNLIMITED SNOWBALLS SCRIPT
01.09.10 03:19:52 pm
Up
RyceR
User
Offline Off
it dont work:
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
27
28
29
30
addhook("startround","randomstart")
function randomstart()
     for id = 1,32 do
          if (player(id,"exists")) then
               local randomuser = math.random(0, 2)
               if randomuser==1 then
                    randomact(id)
               elseif randomuser==2 then
                    -- dont put anything here
               end
          end
     end
end

function randomact(id)
     menu(id,"Title Menu,Button 1,Button 2,Button 3")
end

addhook("menu","randommenu")
function randommenu(id,title,button)
     if title=="Title Menu" then
          if button==1 then
               -- whatever 1
          elseif button==2 then
               -- whatever 2
          elseif button==3 then
               -- whatever 3
          end
     end
end

i wnat it like in multigame... plz help!
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
01.09.10 07:03:16 pm
Up
Evool
User
Offline Off
Hello !
I need a little script

Money should be stored in file, next the many should be loaded from this file using USGN.

Money of course is to be displayed at the bottom.

Thanks a lot!

PS. I serached on the File Archive and forum, but have not found
01.09.10 08:49:05 pm
Up
Soja1997
User
Offline Off
who can give me unlimited snowballs and unlimited gutbombs
01.09.10 08:50:09 pm
Up
martis67
User
Offline Off
whats bad i now that stupid but im new at lua:

addhookfunction sethealth(id,health)
     parse("sethealth "..50.." "..health)
Learning lua
01.09.10 09:48:45 pm
Up
HaRe
User
Offline Off
Soja1997 has written:
who can give me unlimited snowballs and unlimited gutbombs


this is for the snowball, it spawns random ammo.
and it includes unlimited snowballs / Gutbombs

Code:
1
2
3
4
5
6
7
8
9
10
11
12
addhook("projectile","snow_ammo")
function snow_ammo(id,weapon,x,y)
     if weapon==75 then
          parse("equip "..id.." 75")
          x=math.floor(x/32)
          y=math.floor(y/32)
          local rdmammo = math.random(61, 62)
          parse("spawnitem "..rdmammo.." "..x.." "..y)
     elseif weapon==86 then
          parse("equip "..id.." 86")
     end
end
w0w im so eXotiK
02.09.10 01:25:18 am
Up
archmage
User
Offline Off
Is it possible to view a files Metadata? If so how?
We must secure the existence of our people and a future for white children. 14/88
02.09.10 01:46:18 am
Up
murilog
User
Offline Off
hey all , can make script to me ?? if txt only cts : !noclip , the cts cross the wall . THX FOR U HELP
02.09.10 04:15:49 am
Up
archmage
User
Offline Off
Done.
More >
We must secure the existence of our people and a future for white children. 14/88
02.09.10 11:43:42 am
Up
murilog
User
Offline Off
thx
02.09.10 12:40:41 pm
Up
VaiN
User
Offline Off
Just wondering why the setweapon command doesn't seem to work right.

Code:
1
2
parse("equip "..id.." " 32")
parse("setweapon "..id.." 32")


Even though the weapon is displayed the game still acts as though they are wielding the knife. The only way for the weapon to work right is for the player to switch to something else then back (defeating the whole purpose). If they empty a clip the ammo is still burned but they can't even reload until they switch.

I have tried setweapon to knife and then back again, but it still yields the same result. Is this a bug? And is there another way to do it?
edited 1×, last 02.09.10 01:12:19 pm
02.09.10 12:53:35 pm
Up
Cure Pikachu
User
Offline Off
@VaiN
I can see an extra quotation mark in the script...
IMG:https://i.imgur.com/uUrye71.png
IMG:https://i.imgur.com/xpsyQRX.png
02.09.10 01:11:42 pm
Up
VaiN
User
Offline Off
Pikachu xD has written:
@VaiN
I can see an extra quotation mark in the script...


yeah sorry that's not my actual script was just an example to show the weapon was already equipped before tying to setweapon
02.09.10 01:42:59 pm
Up
J4x
User
Offline Off
hello everyone i need a script that make only weapons to use flare 3!
02.09.10 01:57:38 pm
Up
Aqua-
User
Offline Off
Im trying to make a script for my server that heals you when you hit with a gutbomb, and yeah that doesnt have a return 1 yet but I dont think thats the problem.

More >
IMG:http://i41.tinypic.com/wrf2q9.png
02.09.10 02:46:04 pm
Up
Ruirize
User
Offline Off
Stop copying the CC.

Really.

Use your imaginations, don't just steal ideas.
02.09.10 03:55:01 pm
Up
Soja1997
User
Offline Off
help ;X unlimited gut bombs and snowballs
02.09.10 04:29:06 pm
Up
HaRe
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
addhook("projectile","snow_ammo")
function snow_ammo(id,weapon,x,y)
     if weapon==75 then
          parse("equip "..id.." 75")
          x=math.floor(x/32)
          y=math.floor(y/32)
          local rdmammo = math.random(61, 62)
          parse("spawnitem "..rdmammo.." "..x.." "..y)
     elseif weapon==86 then
          parse("equip "..id.." 86")
     end
end


includes unlimited snowballs / Gut bombs

also when you throw the snowball it spawns an Ammo 1 or Ammo 2

(Random)
w0w im so eXotiK
To the start Previous 1 2 ... 248 249 250 ... 338 339 Next To the start