English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 279 280 281 ... 338 339 Next To the start
14.10.10 09:13:16 am
Up
Loooser
User
Offline Off
try this:
Code:
1
2
3
4
5
6
addhook("walkover","walkover")
function walkover(id,iid,type)
              if iid==47 then
                    return 1
              end
end
IMG:http://i45.tinypic.com/saus1e.jpg
14.10.10 09:15:56 am
Up
RyceR
User
Offline Off
Hi all. Can anybody make for me "Poison" script?
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
14.10.10 09:50:35 am
Up
maPmaKer
User
Offline Off
loooser has written:
try this:
Code:
1
2
3
4
5
6
addhook("walkover","walkover")
function walkover(id,iid,type)
              if iid==47 then
                    return 1
              end
end


Is not working (I tryed it)
14.10.10 11:45:57 am
Up
Flacko
User
Offline Off
You have to use item(iid,"type")==47 to get the actual type id instead of the object id of the weapon
14.10.10 12:36:51 pm
Up
RyceR
User
Offline Off
Can anybody give me RolePlay script from rp_shop_map?
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
14.10.10 05:22:21 pm
Up
HaRe
User
Offline Off
@Flacko: Or just if type==ID then
w0w im so eXotiK
14.10.10 05:52:05 pm
Up
maPmaKer
User
Offline Off
Flacko has written:
You have to use item(iid,"type")==47 to get the actual type id instead of the object id of the weapon


Thanks now it works. You're cool too
15.10.10 12:09:54 am
Up
berk
User
Offline Off
Could someone script a lua to deactivate the "Ennemy down" and the "Fire in the hole" Sound&Message?

PLEASE!
15.10.10 12:47:54 am
Up
DC
Admin
Offline Off
the fire in the hole message can be disabled (locally) in the options menu. you don't even need lua for that.

options > more > hud_fireinthehole > 0 - Off / False > Apply

for everything else: radio hook, return 1 in hooked function
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
15.10.10 01:03:06 am
Up
berk
User
Offline Off
And how i disable Teammate down ?

And how you mean radio hook return 1 in hooked function?

And if you say locally you mean i have to change it in the Server setting or in the Options of meh?

Couldn't you write that as a lua ?
15.10.10 03:29:09 am
Up
ethand
User
Offline Off
Can anybody supply me with a script that saves a user's money [ for RP ] and loads it on connection ? thanks a lot
15.10.10 10:49:17 am
Up
hyh2
COMMUNITY BANNED
Offline Off
ethand has written:
Can anybody supply me with a script that saves a user's money [ for RP ] and loads it on connection ? thanks a lot


Code your own.
IMG:http://www.graphicsgrotto.com/animatedgifs/comments/thankyou/images/agcthankyou4.gif
15.10.10 02:30:00 pm
Up
RyceR
User
Offline Off
Can anybody make for me script to save chat in "sys/lua/SERVER.txt" file like:
Code:
1
2
3
4
15/10/2010 day:
[8:29] RyceR says: Hi all!
[8:29] The G0D says: Hello.
[8:30] The G0D says: What is name of this mode?

or
Code:
1
2
3
[8:29] RyceR says: Hi all!
[8:29] The G0D says: Hello.
[8:30] The G0D says: What is name of this mode?


EDIT: Fixed
edited 1×, last 15.10.10 06:40:10 pm
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
15.10.10 11:31:34 pm
Up
CoolioG
User
Offline Off
Yes, is there anyway that I can disable the "rcon quit" function?
16.10.10 09:45:56 am
Up
HaRe
User
Offline Off
CoolioG has written:
Yes, is there anyway that I can disable the "rcon quit" function?


No, Unless you dont make an "Admin Script" Wich dosent use "quit" command
w0w im so eXotiK
16.10.10 10:18:21 am
Up
sixpack
User
Offline Off
HaRe has written:
CoolioG has written:
Yes, is there anyway that I can disable the "rcon quit" function?


No, Unless you dont make an "Admin Script" Wich dosent use "quit" command


HaRe is right. You have to make an Admin Script else you are not able to do this...

If you want one, ask here...
16.10.10 03:09:56 pm
Up
Lee
Moderator
Offline Off
CoolioG has written:
is there anyway that I can disable the "rcon quit" function?


Yes

Code:
1
2
3
4
addhook("parse", "remove_rcon_quit")
function remove_rcon_quit(text)
     if text == "quit" then return 2 end
end


Since rcon is only parsed on the clientside, the server still parses quit.
16.10.10 03:22:50 pm
Up
Fehu
User
Offline Off
Why this dont work ?:

Code:
1
2
3
4
5
6
addhook("hit","god_on")
function god_on(id,source,weapon,hpdmg,apdmg)
    if god[id]==1 then
     return 1
    end
end


//Edit

Skipper, yes!
edited 1×, last 16.10.10 03:33:41 pm
IMG:http://www.flashflashrevolution.com/profile/newsiggy/Fehu/stardust/0/0-1-2-3-4-5.png
16.10.10 03:27:27 pm
Up
RAVENOUS
BANNED
Offline Off
Fehuziom has written:
Why this dont work ?:

Code:
1
2
3
4
5
6
addhook("hit","god_on")
function god_on(id,source,weapon,hpdmg,apdmg)
    if god[id]==1 then
     return 1
    end
end


You implemented an array on god?
"A work of art is the unique result of a unique temperament." - Oscar Wilde
16.10.10 04:07:49 pm
Up
CoolioG
User
Offline Off
Thanks, lee!
To the start Previous 1 2 ... 279 280 281 ... 338 339 Next To the start