Forum

> > CS2D > General > Some questions :)
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Some questions :)

19 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Some questions :)

RedPillow
User Off Offline

Zitieren
So... here i am back and i got more guestions for you guys.

1. How to make my server to pop up msg like every 20 sec for example?
2.Is it possible to add sprites without backround... without using "grayscale"?
3.Umm... i know something about scripting etc.. but will there be topic for lua script-help or topic to send your own script for everyone else? so I and everyone else "noob @ coding" won`t stay behind about server hosting?

4.You don`t have to answer this but... Im kinda interested about this build and the "lowsy build" guestion is: What is the thing which block memory editing in this new version? and how it works?
You don`t have to answer but im little interessed about how to block memory editors

5. Does anybody know any sites wjhere i can download good musicloops for my maps?

6.Does new lua things allow players on my server to use commands made by me? for example...
If i script a command "/open_white_doors" which open every white door in my map when a player writes to their chat/ console "/open_white_doors" AND can i make it like that only certain named people ca use that command?

7. Is it possible to luascript "rank-table" which i mean that there could be 4 ranks: normal player, moderator, supermoderator and admin ofcourse for example?

8. What shouold i do if someone comes to my server, loads my map and hosts it by himself without my permission? [im afraid because i have build my map for 2 months and i dont want to give credits to everybody...]

That`s all, msg be soon! if i got more questions ill post them here

alt Re: Some questions :)

ohaz
User Off Offline

Zitieren
1. Lua!
3. i suggested DC to add a Lua part to the files upload system
4. DC won't answer to you, because then you could cheat again.
6 yes.
7. would be possible, if they use USGN
8. nothing? I would just put some sign that this map is yours on the map. Then be glad that he hosts this map, so spreads wider

alt Thanks

RedPillow
User Off Offline

Zitieren
Yup, i knew that i won`t get answer to question 4 but ill seek it from somewhere else

One thing to keep you calm is that i won`t use that information to cheat, even if i know how it works and what is it

alt Re: Some questions :)

Lee
Moderator Off Offline

Zitieren
For the first question, you can add that into your map by using a trigger_delay and a func_message.

For 3: I'm starting a lua help + resource website for the upcoming release of 0115, Lua's a pretty easy language actually, and I've already wrote 5 mods for it pending the official release so if you're interested in scripting, go to http://amx2d.co.cc

For 6: Yes, DC's already hinted in other posts that we can use lua to trigger map entities

For 7: Yep, I've already finished writing the exact same system, it'll have 3 basic levels and as many user defined admin levels as you want, all you have to do is put them in order from the highest to the lowest.

alt Might there be...?

RedPillow
User Off Offline

Zitieren
HEY this flied to my head while i was banning some hahkz0rz on my server

Is it possible (yeah it will be time-taking and damn hard)
to make "autoban/autokick" - system with lua?

Well.. honestly i dont really know lots about it, but i can make simple things -- although its c++ based...

But if my brains are right it MIGHT just might be possible?

i dont know how to write coe for this but something like this:

•Player uses speedhack ---> scrit counts how many squares the player moves in second --> let te normal []/second be 0,5 and the player move 7,5 []/second... the script notices that and kicks/bans him ---> POSSIBLE?

Case number 2:

•Player uses health-hack ---> script counts how much health that player should have lose on certain weapon on certain distance (or possible get the info somewhere else??) and checks if that player loses the amount of health --> i think there must be little flexibility like if the script counts that player had to lose 15 health and he loses only 10 health the script allows it... but if he doesnt lose health at all the ban/kick.

Case number 3 (The hard/impossible?!)

• Player uses radar-hack so he can see everyone in hes radar.
The script will checks all the plugins,injects and stuff realted to that from the player (impossible?? cuz the script cannot really read stuff from someones PC?!)
and if it find one (and game itself doesn`t) ---> Kick/ban.

P.S Answer to my first posts guestion 2?


And finally my thanks and praises to DC:

DC, you have made lots of things for us... the new build and all you keep hard work to watch the forums and sleep only few hours/day
So i think i thank you for everyone else too if i say that... just keep a little vacation, players can`t be so impatient about everything, you have earned it!
Besides... your wonderful game is freeware you don`t even as money for this glory!
Thank you DC -- really THANK YOU!
2× editiert, zuletzt 21.03.09 10:42:44

alt Re: Some questions :)

Flacko
User Off Offline

Zitieren
I think health is server-sided, so, it can't be hacked... at least that never happened to me...

alt Re: Some questions :)

DC
Admin Off Offline

Zitieren
that's right. some things like health, armor and weapons are serversided. 100% impossible to hack those as client.

a speedhack protection with Lua as you described it would be possible but not efficient. please think of lags and high pings. it would think that an innocent players has a speedhack as soon as he has a lag or high ping.
(mp_trace works the same way - but it just sets the player's position to an acceptable value and doesn't kick him. you can activate it and you will see that it doesn't work very good.)
we also discussed a speedhack detection with Lua in another thread btw.

alt Re: Some questions :)

Lee
Moderator Off Offline

Zitieren
Jonzku777 hat geschrieben
Case number 2:

•Player uses health-hack ---> script counts how much health that player should have lose on certain weapon on certain distance (or possible get the info somewhere else??) and checks if that player loses the amount of health --> i think there must be little flexibility like if the script counts that player had to lose 15 health and he loses only 10 health the script allows it... but if he doesnt lose health at all the ban/kick.


This is possible but it adds the problem that if we set custom mp_wpndmg for each weapon, this wouldn't really work out. And since the weapon damage isn't client controlled, there's nothing that you can really hack here unless you somehow inject something into the server (which is pretty unlikely)

Also, Lua isn't actually really hard to learn, it's one of the easiest languages out there.

alt Re: Some questions :)

Zune5
COMMUNITY BANNED Off Offline

Zitieren
A simple solution for hackers. I remember this from one of lee's dedi server back in 0104.

sv_upratekick. Basically kicks people that lag too much. Like 3 "squares"

alt LUA questions..

RedPillow
User Off Offline

Zitieren
So, i would like to know are these possible to make with lua? [if yes, please make em soon :P]:

1.Command which teles to certain location.
2.Command which opens/closes all doors on map.
3.A Rank-system [Fors my RP] Which must include; Police, civilian, robber, weaponseller.
4.A command which allows to give stuff to other players.
5.Script which will make each rank unque, like only polices may have clocks or only polices may open certain doors etc.?
6.Moving sprites,objects,walls or images?
7.Auto-restart script?
8.Auto-kick/ban/ipban/usgnban/slap/kill script?
9.Script to make own mods??
10.Script to make all [or certain] players move faster.
11.Specially designed commands for admins, like "warnmsg" or "jail [ID]" or "Freeze [ID]" or "give laser [ID]"
12.Maybe a... LOTTERY-thing to my RP?
13.Could i make object and script it so it will be like umm... gaming machine? i mean that if i win double money back or if i lose moneys to machine?
14.Able to give other player money? OR MAYBE HEALTH OR ARMOR?
15.Script weapon ammunity-capacity bigger?
16.Weapon power bigger?
17.Weapon fire-rate bigger?
18.Ability to send other people my custom skins so they use them too?
19.is it possible to maybe script some random-events to my server? like... every player pays taxes? or everyone loses 15 ammos or something like that?

And finally question ~20~
What Can`t i make with LUA? short explain please

Forums have been quiet for last 2 days, take your time and answer these!

alt Re: Some questions :)

DC
Admin Off Offline

Zitieren
1 √
2 √
3 √
4 √
5 √
6 × not with the next release but probably later
7 √
8 √
9 like gungame? √ but you can't change the look of weapons/players and you can't add new weapons
10 √
11 √
12 √
13 √
14 √
15 × - but you can refill the ammo
16 √
17 ×
18 ×
19 √ (however you can't remove ammo. you can only give full ammo)

20. many things. you can influence most stuff which is handled/controlled by the server. money, weapons, ammo, health, positions etc.
moreover you can play sounds and show messages or custom menus.
it is pretty impossible to list all possibilities

alt Re: Some questions :)

Matsu-Kiri
User Off Offline

Zitieren
in cs2d 0.1.1.4 which is coming out soon, it will be including in the next release, u dont have to worry bout downloading it somewhere else

alt Re: Some questions :)

Matsu-Kiri
User Off Offline

Zitieren
SG Master Chief hat geschrieben
in cs2d 0.1.1.4 which is coming out soon


do you not understand what this means? its not out yet, just go to the cs2d site

alt Re: Some questions :)

Dvaris
User Off Offline

Zitieren
i have a noobish question... how do you upload lua into the game... i have the scripts but i don't know how to upload it or place it into game?

alt Re: Some questions :)

SQ
Moderator Off Offline

Zitieren
Dvaris hat geschrieben
i have a noobish question... how do you upload lua into the game... i have the scripts but i don't know how to upload it or place it into game?

1. What scripts exacly you have?
2. Most of scripts you should be in "sys/lua/server.lua"
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht