English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 123 124 125 ... 338 339 Next To the start
25.12.09 04:35:29 pm
Up
Fehu
User
Offline Off
How to make green message in join (in chat): "..player name.." has join, from ".. country.." ?
IMG:http://www.flashflashrevolution.com/profile/newsiggy/Fehu/stardust/0/0-1-2-3-4-5.png
25.12.09 04:45:00 pm
Up
Flacko
User
Offline Off
perfectgamer2 has written:
Hi i made my own equip lua but then it will msg but no equip?

--Night vision

addhook("say","spawn7")
function spawn7(id,txt)
if(txt=="!nv") then
msg(""..player(id,"name").." He can see in the dark ")
parse("equip "..id.." 59")
end
end
it works but can't equip "..id.." nightvision


If you check the console you will probably read
"ERROR: Strip - Cannot strip 59 - Night Vision (this would lead to problems)" or something like that.
Try returning 59 when you spawn a player, I don't know if that will work though...
25.12.09 05:06:01 pm
Up
bassZ3N
User
Offline Off
so hi all . can someone help my with one script , could you tell my how to make a script containing the map buttons like, you press button and you will get a car for the price it costs . and you have speed and car skin.... Like in roleplay server by vetti , so if you can help my i will be very thankful...

(P.S it's will be better if you will give me the code or script becouse im NOOB in scripting ) http://www.shout.ru/releases/devision_noob_frontcover.jpg" alt="IMG:http://t0.gstatic.com/images?q=tbn:T-98d1R_wA2m6M: http://www.shout.ru/releases/devision_noob_frontcover.jpg" border="0" style="margin: 5px 0px 5px 0px" width="1" height="1" onLoad="handleImg(this);" />

Admin/mod comment:

whole text bold? pointless attention whore crap. don't do that. fixed. /DC
25.12.09 09:27:52 pm
Up
memo
COMMUNITY BANNED
Offline Off
can classes script be over than 6 classes ?
How ?!
Call Of Duty - World At War [Work on progress] | official CoD scripts site
25.12.09 09:33:41 pm
Up
A Mad Bro
User
Offline Off
....extend the class list
On the outside I may appear like an emotionless sarcastic piece of shit but just like an onion when you peel off more layers you find the exact same thing every single time and you start crying.
25.12.09 11:06:28 pm
Up
memo
COMMUNITY BANNED
Offline Off
can any one tell me how to make the classes players more than 6(classes) i need good explanation if you give me a script with more off 6 classes players it would perfect !
Call Of Duty - World At War [Work on progress] | official CoD scripts site
25.12.09 11:15:34 pm
Up
SQ
Moderator
Offline Off
Please listen what Guenter13 said. Extend code.
That's 9 classes:
Spoiler >
25.12.09 11:42:35 pm
Up
memo
COMMUNITY BANNED
Offline Off
omg it just never work
here the script i donot know what wrong i add 2 more classes but all classes like the class number 1 why ???

Spoiler >
Call Of Duty - World At War [Work on progress] | official CoD scripts site
26.12.09 12:06:10 am
Up
Argh
User
Offline Off
How can i make lua scripts?
26.12.09 12:11:29 am
Up
RAVENOUS
BANNED
Offline Off
Argh has written:
How can i make lua scripts?

You need some lua-skills to make lua-scripts.

Here a lua tutorial based on CS2D. Click meh!

To activate the lua script on your server edit this data:

sys/lua/server.lua
In the lua directory you can find samples, made by DC, which are showing you some little things you can make with lua.

Have fun making/editing lua stuff
"A work of art is the unique result of a unique temperament." - Oscar Wilde
26.12.09 12:16:37 am
Up
memo
COMMUNITY BANNED
Offline Off
@Argh
Hi i was like you on my first lua just go there and download some lua and learn from it (not copy it just learn) and try to make you own script even if it simple ,just when you make one even its simple that mean you go forward with lua.
and there is place where you can learn lua here some :
-www.lua.org
-this thread (you can ask any question about lua scripting)
-and there is a thread specially for Beginners byBlazzingxxclick clickhere
you can ask any qeustion you want on this thread i give you .

-Hope i tell you what you want to know
Call Of Duty - World At War [Work on progress] | official CoD scripts site
26.12.09 02:24:40 am
Up
NozliW
User
Offline Off
memo has written:
-and there is a thread specially for Beginners byBlazzingxxclick clickhere

That thread was to announce that Blazzingxx was going to make a tutorial for lua, not to ask newbie questions
26.12.09 03:22:14 am
Up
Argh
User
Offline Off
thx very much memo and skipper!
26.12.09 07:52:06 am
Up
perfectgamer2
User
Offline Off
But then mine didn't say anything in red,All works...
even though i use /equip 1 59 it didn't work
26.12.09 12:26:44 pm
Up
YellowBanana
BANNED
Offline Off
memo has written:
omg it just never work
here the script i donot know what wrong i add 2 more classes but all classes like the class number 1 why ???

Spoiler >



this is how i did it, with a bit more OOP approach

Spoiler >
27.12.09 03:12:18 pm
Up
tengku4u
User
Offline Off
How to change name for ct and t
edited 1×, last 27.12.09 03:48:44 pm
IMG:http://www.userbars.com/i/520496.png
IMG:http://i33.tinypic.com/6fr3vm.png
IMG:http://i36.tinypic.com/258nh2h.png
27.12.09 03:51:00 pm
Up
NozliW
User
Offline Off
@tenguku4u
change names ?? could you explain it better,so i can give you a better function
27.12.09 03:55:41 pm
Up
Happy Camper
User
Offline Off
I discovered this when I tried to replace the original addhook function with my own (it's a long story...). I did like this:

Spoiler >


When I call addhook, both my_addhook and CS2D's original addhook get called. Isn't this kind of...wrong? I would expect only my_addhook to be called or am I mistaken?
happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
27.12.09 04:02:02 pm
Up
Flacko
User
Offline Off
What does your my_addhook function look like?
27.12.09 04:34:58 pm
Up
Happy Camper
User
Offline Off
Hmm, it seems to be working now. I have no idea why it didn't work before.
happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
To the start Previous 1 2 ... 123 124 125 ... 338 339 Next To the start