Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2261 262 263338 339 Next To the start

old Re: Lua Scripts/Questions/Help

Surplus
User Off Offline

Quote
tiiger87 has written
batlaizys has written
You mean when some1 kills you with knife, you will drop weapons you said ?


if you kill some1 and he has in hand machete,rpg,medic, but he will only drop the machete, or any other meele weapon he has.

no long rage weapons or armors will be dropped if (s)he has them.
only meele weapons that he has


this is what i need help in...

old Re: Lua Scripts/Questions/Help

murilo1998
User Off Offline

Quote
hey , who can make F4 menu jobs , have medic (0/1) txt
!gomedic , Y = 123 X = 567 , payday is 2k

hotel owner (0/1) if txt !gohotel , Y = 912 X = 679 , pay day is 3k

BANK owner (0/1) if txt !gobank , Y = 178 X = 893 , payday is 2k

Arena Owner (0/1) if txt !goarena , Y = 529 X = 567 , payday is 3k

Shop Owner (0/4) if txt !droparmor the shop owner can drop armor , and no disappear , and txt !dropitem , only to shops owners , can drop itens , to no disappear , and if 30 in 30 seconds , shop owner win one weapon , payday is 4k

old Re: Lua Scripts/Questions/Help

TDShuft
User Off Offline

Quote
Spoiler >


Can Some 1 Help
inConsole Says that the error is in :
time_glow[id]=time_glow[id]+1

old Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Quote
Is it possible to do something like: if a players position is (56,89) and another is (37,90) to get an angle/the rotation of their positions?
Edit
Nevermind I used math.sin and math.atan2
edited 6×, last 19.09.10 09:12:54 am

old Re: Lua Scripts/Questions/Help

Surplus
User Off Offline

Quote
Flacko has written
I'm not making a fucking script from scratch for ANYBODY, ok?


hmm... u gave me a idea...
but i need some help.
if some1 dies then it will stip all his weapons.
easyer

old Re: Lua Scripts/Questions/Help

tom282f3
User Off Offline

Quote
Please help me!
I am writing a script that message contains color,
but when I save these file by Notepad, Notepad++, color disappears.
Please tell me how to make colored messages?:(
(PS. I tryed copy&paste still no works!)

old Re: Lua Scripts/Questions/Help

Jynxxx
User Off Offline

Quote
can some1 help me make a script that the admins can give people addons but you must be an admin it is for a roleplay script that i need

old Re: Lua Scripts/Questions/Help

Snake_Eater
User Off Offline

Quote
Hi all I need help from pro scripter.....

How to indicate unlimited parameter like...

1
2
3
4
5
6
7
8
9
rndm(1,2,3) --if here 2 parameters indicate then....

function rndm(n1,n2,n3) --then here are 2 parameters too...

--------------------------or-----------------------------

rndm(1,2,3,4,5,6,7) --here 7 parameters

function rndm(n1,n2,n3,n4,n5,n6,n7) -- automatically 7 parameters too

help pls

old Re: Lua Scripts/Questions/Help

Jynxxx
User Off Offline

Quote
i have a scripter that can help you his name is Kossrifle tell him or someone else
edited 1×, last 20.09.10 02:52:29 pm

old Re: Lua Scripts/Questions/Help

Snake_Eater
User Off Offline

Quote
@ Dantes Inferno I didnt found user "Kossrifle"

Ps:

I need help from pro scripter.....

How to indicate unlimited parameter like...

1
2
3
4
5
6
7
8
9
rndm(1,2,3) --if here 2 parameters indicate then....

function rndm(n1,n2,n3) --then here are 2 parameters too...

--------------------------or-----------------------------

rndm(1,2,3,4,5,6,7) --here 7 parameters

function rndm(n1,n2,n3,n4,n5,n6,n7) -- automatically 7 parameters too


help pls

old Re: Lua Scripts/Questions/Help

HaRe
User Off Offline

Quote
Snake_Eater has written
@ Dantes Inferno I didnt found user "Kossrifle"

Ps:

I need help from pro scripter.....

How to indicate unlimited parameter like...

1
2
3
4
5
6
7
8
9
rndm(1,2,3) --if here 2 parameters indicate then....

function rndm(n1,n2,n3) --then here are 2 parameters too...

--------------------------or-----------------------------

rndm(1,2,3,4,5,6,7) --here 7 parameters

function rndm(n1,n2,n3,n4,n5,n6,n7) -- automatically 7 parameters too


help pls


wtf do you mean, isnt it impossible to make more functions??

/edit: oh now i understand ill try to make one

/edit2: failed .....
edited 1×, last 20.09.10 05:14:36 pm

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
You have to put three colons in the parameters.
1
2
3
4
function rand(...) --Take any number of parameters
	local id = math.random(1,#arg) --arg is the table where ALL the parameters are stored
	return arg[id]
end
The function above should take any number of parameters of any type and return one of them randomly.

old Re: Lua Scripts/Questions/Help

Jynxxx
User Off Offline

Quote
Hello everyone, im looking for script for my server it is a role-play one so i want the admins to give people add-ons like cars,wings,horses,tanks stuff like that it is really hard for me to make because i know nothing of lua thank for reading this.
To the start Previous 1 2261 262 263338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview