
ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 12:40 PM
Msg. 1 of 13
would this work for keeping someone from changing an rcon password? (script startup rcon_autopw (sv_rcon_password %Im not telling you foo' D:%) (cls) ) ) (The "cls" is so it doesnt spam their screen with "rcon password: <password>") And This: (script continuous rcon_lock) (if (= sv_rcon_password) (begin (sv_rcon_password %Im not telling you foo' D:%) (cls))) ) ) They are separate scripts because one is continuous and on is startup Im pretty sure the first one works, but does the 2nd one? Thx, ~Kz EDIT: Oh also another question, if you didnt want a specified person playing your map (ie: a leaker) from keeping him from playing your map? eg: this (script continuous ban_leaker (sv_ban "a leaker") (sleep 1) ) ) and this (script continuous ban_leaker_lock (if (= sv_unban "a leaker") (begin (sv_ban "a leaker") (sv_end_game) (crash 1)))) ) (This "crash 1" is so the person will think twice about unbanning "leaker" again ;) ) Edited by ALD_KaiZei on Mar 17, 2008 at 12:54 PM Edited by ALD_KaiZei on Mar 17, 2008 at 12:56 PM Edited by ALD_KaiZei on Mar 17, 2008 at 01:39 PM
|
|
|

CLS_GRUNT
Joined: Jan 21, 2007
Old
|
Posted: Mar 17, 2008 01:15 PM
Msg. 2 of 13
Mind explaining why 'cls' is presant in your ban scripts D:<
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 01:38 PM
Msg. 3 of 13
idk..? all cls does is clear the console screen <_>
|
|
|

CLS_GRUNT
Joined: Jan 21, 2007
Old
|
Posted: Mar 17, 2008 01:42 PM
Msg. 4 of 13
wait so my names random letters have a pupose?
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 02:25 PM
Msg. 5 of 13
Quote: --- Original message by: CLS_GRUNT wait so my names random letters have a pupose? what are you talking about o.0
|
|
|

CLS_GRUNT
Joined: Jan 21, 2007
Old
|
Posted: Mar 17, 2008 02:49 PM
Msg. 6 of 13
well the CLS in cls_grunt
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 02:57 PM
Msg. 7 of 13
Oh lol Yes they do, and dont worry this script wont ban you XD
But i know there is bugs, i was just wondering if someone knew how to fix them?
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Mar 17, 2008 05:12 PM
Msg. 8 of 13
There are some parts that aren't possible through scripting, but most of it can be fixed: (script startup rcon_autopw (sv_rcon_password %Im not telling you foo' D:%) (cls) ) ) That script has an extra parentheses (in bold). Other than that, it should work. I'm not sure if (cls) is needed because I don't think scripts can print to the screen, but it's fine to keep just in case sv_rcon_password does spam the screen. (script continuous rcon_lock) (if (= sv_rcon_password) ;; change to: (!= sv_rcon_password %Im not telling you foo' D:%) (begin (sv_rcon_password %Im not telling you foo' D:%) (cls) ) ) ) ) This is unedited. I just made it neater. Again, there is an extra parentheses (in bold). Also, the command (=) has two arguments, because it needs to compare one value to the other to test whether they're equal. So, change (= sv_rcon_password) as noted above, so that it performs the change only if the rcon password isn't the same as before. (!=) means "not equal". (script continuous ban_leaker (sv_ban "a leaker") (sleep 1) ) )
Again, there's an extra parentheses, in bold. Other than that, this would work. (script continuous ban_leaker_lock (if (= sv_unban "a leaker") ;; won't work (begin (sv_ban "a leaker") ;; not needed, you're about to crash the game (sv_end_game) ;; what's the point? you're about to crash the game anyways (crash 1) ) ) ) ) (again) Again, there's an extra parentheses. Carefully count how many starting parentheses there are so this isn't an issue. Again, I didn't edit the original script, I just made it neater. But, the test for sv_unban won't work. sv_unban is just a command that performs an action, but it doesn't return any value, so you can't test for somebody unbanning "a leaker". There's no way of knowing through scripting. Regardless, why would you want the rcon password to be forced to stay the same? That would force you to tell your map players what the rcon password is if they want to use rcon, and then any player that enters the server running the map can use rcon to do anything they want. It defeats the purpose. Not only that, but if it's that long, the command will go off the screen, and rcon would just be annoying to use as a result.
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 05:24 PM
Msg. 9 of 13
Quote: (sv_end_game) ;; what's the point? you're about to crash the game anyways The Purpose of this is so everyone that is in the server doesn't get an exception too. Quote: I'm not sure if (cls) is needed because I don't think scripts can print to the screen, but it's fine to keep just in case sv_rcon_password does spam the screen. Ive checked it, it does spam the screen without cls. Quote: Regardless, why would you want the rcon password to be forced to stay the same? That would force you to tell your map players what the rcon password is if they want to use rcon, and then any player that enters the server running the map can use rcon to do anything they want. It defeats the purpose. The purpose of having a locked rcon password is not for publishing a map, it is for Modding an already excisting map for your server. People should be able to join if it is just the script that is differant. This makes it so people cannot hack the rcon password and change it. Thx Though :P ~Kz
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Mar 17, 2008 05:43 PM
Msg. 10 of 13
Sure, no problem. Quote: Ive checked it, it does spam the screen without cls. I thought it would, so yeah, keep it there. Quote: The Purpose of this is so everyone that is in the server doesn't get an exception too. As long as everybody's connected to the server, giving the server an exception will cause everybody else to lag out, whether the game's ended or not. Also, if you have that script running for everybody, then only the person who types "sv_unban "a leaker"" will get an exception. If it's the server who does, then the other players will just lag out. Either way, that script wouldn't work. Quote: The purpose of having a locked rcon password is not for publishing a map, it is for Modding an already excisting map for your server. People should be able to join if it is just the script that is differant. This makes it so people cannot hack the rcon password and change it. I wouldn't be so sure that somebody could join with a slightly different map. Maybe scripts are excusable, but even then, you'd have to rip tags from a map and re-compile them in order to mod. When tags are ripped, they're rarely 100% accurate to the map, and other players won't be able to join your modded map if there are slight differences in those tags. Edited by Me KS on Mar 17, 2008 at 05:44 PM
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 06:31 PM
Msg. 11 of 13
Quote: --- Original message by: Me KSSure, no problem. Quote: Ive checked it, it does spam the screen without cls. I thought it would, so yeah, keep it there. Quote: The Purpose of this is so everyone that is in the server doesn't get an exception too. As long as everybody's connected to the server, giving the server an exception will cause everybody else to lag out, whether the game's ended or not. Also, if you have that script running for everybody, then only the person who types "sv_unban "a leaker"" will get an exception. If it's the server who does, then the other players will just lag out. Either way, that script wouldn't work. Quote: The purpose of having a locked rcon password is not for publishing a map, it is for Modding an already excisting map for your server. People should be able to join if it is just the script that is differant. This makes it so people cannot hack the rcon password and change it. I wouldn't be so sure that somebody could join with a slightly different map. Maybe scripts are excusable, but even then, you'd have to rip tags from a map and re-compile them in order to mod. When tags are ripped, they're rarely 100% accurate to the map, and other players won't be able to join your modded map if there are slight differences in those tags. Edited by Me KS on Mar 17, 2008 at 05:44 PM Well then how do you explain the sv_say scripts in the HIV server? <_>
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Mar 17, 2008 06:37 PM
Msg. 12 of 13
Quote: --- Original message by: ALD_KaiZei
Well then how do you explain the sv_say scripts in the HIV server? <_> Those aren't scripts, that's rec0's server application. Edited by Me KS on Mar 17, 2008 at 06:37 PM
|
|
|

ALD_KaiZei
Joined: Feb 9, 2008
|
Posted: Mar 17, 2008 06:52 PM
Msg. 13 of 13
Oh.. D:
|
|
|
| |
|
|
 |
|