Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 259 60 61338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Zitieren
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??

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
-GaS- hat geschrieben
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.

alt Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Zitieren
Blazzingxx hat geschrieben
-GaS- hat geschrieben
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??
3× editiert, zuletzt 27.09.09 19:45:31

alt Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Zitieren
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??

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
-GaS- hat geschrieben
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)

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
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 >

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
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.}

alt Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Zitieren
Blazzingxx hat geschrieben
-GaS- hat geschrieben
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!!)

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
Blazzingxx hat geschrieben
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

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
Blazzingxx hat geschrieben
Its much easier than you thought.

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

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
Homer hat geschrieben
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
Zum Anfang Vorherige 1 259 60 61338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht