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 259 60 61338 339 Next To the start

old Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Quote
hey im making a lua script and i need help , the lua is for admins and rcon, instead of typing in the consol i want to make a menu.:
like you press F3 then a menu opens, a space to wright the players name then the comand kind of like the vot kik thing, but is it possible to do hat with lua DC??

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
-GaS- has written
but is it possible to do hat with lua DC??

Its possible 75% of what you said, becouse I havent understand your 25%.
But for now, lua dont have function to get if player is with rcon.
You should make value of usgn users whitch can use admin features.

Dont ask "DC" in request, becouse he is not the only one who can answer.

old Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Quote
Blazzingxx has written
-GaS- has written
but is it possible to do hat with lua DC??

Its possible 75% of what you said, becouse I havent understand your 25%.
But for now, lua dont have function to get if player is with rcon.
You should make value of usgn users whitch can use admin features.

Dont ask "DC" in request, becouse he is not the only one who can answer.

what did you not understand i'll explain and wth are you saying i didnt get what you said

hers what im asking help with(and i explained super well:

•you press F3 ,and a menu opens
-->in the menu there are spaces in which you can wright
---∗there are many spaces like a list,like in he votekik menu
----°you wright the name in the fist space
-----•and then commands in all the others
------>if its possible to execute the comands simoultanously that would be cooli dont expect it to be possible)
------->and also for th typing space, i would like hat when you klik it a menu of the players goes out(llike in the vote kik menu)
and i said DC coz i thought that HE would be the only ne to know ow to to itz(co he created the game, the vote kik menu)
did you understand now??
edited 3×, last 27.09.09 07:45:31 pm

old Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Quote
Ok ...D##N!! then is it possible the in get buttons to equip or slap etc players, buttons with the name of the players?? or console changeable variables so that you update the list of buttons whish have the names f plyers of it
∗like,a combination of buttons, you press the name buttonthe equip slap evt button, the a execute button is that possible
>is that possible??

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
-GaS- has written
bla bla...
>is that possible??

Acording my inventory in super hero 1.2,
Its posible.

I can make it & I will make it for other my mods. (Admin Plungin)

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
The save feature works perfect but the load does not work what is the problem
the script saves data to 'sys/lua/RPG_data/'

Load
Spoiler >


Save
Spoiler >

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
To load data for player use "team" hook.

Btw, join[id] should be set 0 when he joins server.

You messed with "rpg_data" value... It should io.open file. Not as string in file directory.
1
2
[b]RPG_data[/b] = io.open(load_data..'RPG_data/'..player(id,"usgn")..'.txt','r')
if ([b]ld_data[/b] ~= nil) then
see? ld_data should be RPG data, but in you code is no sence.

And please, fix tabs.

{Dont forget that even this load system is mine.}

old Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Quote
Blazzingxx has written
-GaS- has written
bla bla...
>is that possible??

Acording my inventory in super hero 1.2,
Its posible.

I can make it & I will make it for other my mods. (Admin Plungin)

if it is possible, why don't you show me how ?!
how do you make it?? can you show me,plz!?
o ya and i suck in lua so i didnt get much of whats in your script( i checked it out and its seperated in like 20 part OMG!!)

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
Blazzingxx has written
To load data for player use "team" hook.

Btw, join[id] should be set 0 when he joins server.

You messed with "rpg_data" value... It should io.open file. Not as string in file directory.
1
2
[b]RPG_data[/b] = io.open(load_data..'RPG_data/'..player(id,"usgn")..'.txt','r')
if ([b]ld_data[/b] ~= nil) then
see? ld_data should be RPG data, but in you code is no sence.

And please, fix tabs.

{Dont forget that even this load system is mine.}

ok thanks and i wont forget but do i need to use
1
file:write(experience[id],"\n",level[id],"\n",buildlevel[id]
for the
1
experience[id] = tonumber(parses[1])
but change it to look like this?
1
experience[id] = tonumber(parses[1],'\n',level[id] = tonumber(parsees[1]


the tabs in my script are correct but there not here

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
Blazzingxx has written
Its much easier than you thought.

Btw, you dont need to use parses if you save data to lines.
then what do i do?

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
Homer has written
i have a question.. how do you add strings or something.. example when you say !lock 'team' 'player'

you mean addhook

for a say comand
[code]
addhook('say','some_say')
function(id,text)
     if (text==!lock) then
          Whatever you want it to do
     end
end
To the start Previous 1 259 60 61338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview