EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (12) awp (23) ban (18) ba_jail (17) bhop (19) block (19) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2507) Damage (35) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (389) easy (17) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (288) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (55) hegrenade (13) hl2dm (332) HP (13) info (48) information (16) jail (26) jailbreak (11) join (23) jump (12) kick (23) kill (44) kills (22) knife (57) leveling (36) management (14) mani (15) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (13) music (29) mute (18) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (56) props (23) protection (27) punishment (50) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (42) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (151) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (25) slay (13) soccer (11) sound (45) sounds (92) spawn (63) speed (25) statistics (13) stats (48) STEAMID (23) Superhero (13) surf (31) Team (25) team-balance (14) teleport (12) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (12) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (9) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (6) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (8) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Author Message
User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-05-19, 12:43 am 
   Post subject: Insight Admin and Monitoring Addon

Insight Admin

I have tested this script myself on my own SourceDS server; however I could have missed a few things and bugs that may not be present with 1 player may arise with more than 1 player. EDIT: It has now also been tested fine on a live server.

About:
- Monitor player rates and fps commands.
- Make the match Live or Knife round.
- PM a specific player (admin only command by default).
- PM an admin (if they are online).
- Message the server (instead of Console: it comes up with Name:).
- Query a command variable from any player.
- Readyup script.
- Vote ban/kick/map command.
- Notification when protected CVARs are changed.

To Come:
- something

Requirements:
- Matties Eventscripts 1.5+
- Corelib (foreach/usermsg/somemore?)
- Popup

Autoexec:
- es_load insight

Configuration:
To configure Insight Admin open up [/cstrike/addons/eventscripts/insight/es_insight.txt] and change the following values:
ES:
    es_set insight_adminlist "STEAM_1234LOL " "Insight Admin STEAMID List" // Make sure the last STEAMID ends with a space
    //      Admin Names:      loladmin1

    es_set insight_welcome "1" "Enable or Disable the Welcome Popup"                // Default: 1
    es_set insight_spectator "0" "Allow only spectators to use Admin commands"      // Default: 0
    es_set insight_vote "1" "Enable or Disable the Vote command"                    // Default: 1
    es_set insight_votetime "60" "How long a vote stays open before timing out"     // Default: 60
    es_set insight_adverttime "0" "Interval between advertisements"         // Default: 160 - 0 to disable

    es_set insight_protected "sv_cheats sv_pure sv_consistency sv_allow_wait_command tv_enable tv_delay" "Protected Server Variables"

    es_set insight_advert1 "Join walinerz.4playgames.com" "Ingame Advertisement" // Console
    es_set insight_advert2 "Join walinerz.4playgames.com" "SourceTV Advertisement" // Hudhint


You can also put "insight_spectator 0/1" or "insight_vote 0/1" in you server.cfg or war.cfg

Initial Release - Tested and Working (to a degree)
v2.2 - Tested and Working
v2.3 - Tested and Working

// ADDED - player colours to voting to see who voted ready and notready
// ADDED - advertisements via console (ingame) or hudhint (sourcetv)
// FIXED - popups not unsending or updating
// CHANGED - vote time to 60 seconds
// REMOVED - client_echo and client_hudhint commands
v2.4 - Tested and Working
// CHANGED - vote time and advert time to con variables
// CHANGED - popup prefix from nothing to in_
// ADDED - option to disable advertisements
// ADDED - a welcome popup
// FIXED - popups not closing after a vote
// ADDED - kill command for admins to kill all votes

Known problems:
- Sometimes under high load of the server (not caused by this addon) the in_query/in_fpsinfo/in_netinfo/in_status commands may skip a variable (or two). It should only happen under extreme lag. If you just enter the command again it should work fine.

Admin commands:
in <command> [parameter1] [parameter2] - admin command usable from console or chat

in ban <name or userid> <length> - ban a player from the server
in kick <name or userid> - kick a player from the server
in kill - kill all votes
in map <map name> - change the server map
in password <password/remove> - change or remove the server password
in pm <name or userid> <message> - pm a player in the server
in say <message> - message everyone in the server
in load <config> - load a config file
in knife [demo name] - launch the knife round
in live [demo name] - launch liveon3
in overtime - launch overtime
in end - end a war and revert back to server.cfg

Console commands
in_fpsinfo - view client fps variables
in_netinfo - view client netcode variables
in_query <name or userid> <cvar> - view a client variable
in_status - view server and client information
in_time - view the current time
in_vote ban <name or userid> - vote ban a player from the server
in_vote kick <name or userid> - vote kick a player from the server
in_vote map <map name> - vote for a map change
in_vote ready - vote for liveon3

To PM an admin (admins can also use this for private admin discussions) type "ia <message>".

If you type just "in" it will list the commands in console.

The readyup script will not launch unless there is a minimum of 10 players in the server. If the number drops below 10 during the readyup it will be killed and you will have to wait until you have 10 in the server again. If a player changes teams during readyup he will automatically be marked as notready and will need to type ready again. Added in v2.3: Players who are AFK will not be coloured, players who are ready will be coloured GREEN, and players who are notready will be coloured RED.

The vote system will work with any amount of players greater than 1. It is a simple system of if "yes" votes > "no" votes then action what was asked. If you don't vote you will not count as either a yes or no. Vote time is a default 30 seconds and wont be increased (can be decreased however) until I sort out some possible internal conflicts of 2 consecutive votes.

Most common problems:
The popup from voting wont go away! Is there anyway I can remove it?
- If a popup will not go away after a vote. Either press 1/2/3/4/5/etc or press "c" (radio commands) and that will make it disappear.
I don't think the vote ready command works! Does it?
- Yes it does make sure everyone has typed "ready". If they have changed teams they will need to type "ready" again. Added in v2.3: Check to see that everyone is coloured GREEN!
This is gay! How do I use this thing?
- Type "in" or "in_help" in console. Or you could just read this post.
How come "in live" and "in knife" don't load the war.cfg anymore?
- Use "in load <config>" (war.cfg for normal wars, match.cfg for official matches etc)
I want to use the admin command to live it, but someone has started a vote. What do I do?
- "in kill" to kill any current votes, and then "in live" to live it.
Why cant I use the "in" commands?!
- Because your not an admin.
Are you a pretty pony?!
- Yes

_________________
Insight Admin - View any players variable + lots more!


Last edited by retaliati0n on 2007-07-05, 9:34 am, edited 8 times in total.




User avatar
New User
Profile

Posts: 28
 
New postPosted: 2007-05-23, 4:48 am 

I got this error on loadinf the addon on HLSW

11:37:08 [EventScripts] Loaded insight
EventScripts couldn't find the user group insight
Error source es_insight.txt: es_keygroupdelete insight
<01><04> iNSIGHT<01> : Addon Loaded

_________________
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-05-29, 7:35 am 

Darkzone wrote:
I got this error on loadinf the addon on HLSW

11:37:08 [EventScripts] Loaded insight
EventScripts couldn't find the user group insight
Error source es_insight.txt: es_keygroupdelete insight
<01><04> iNSIGHT<01> : Addon Loaded


That's a given error. It wont cause any problems and can easily be fixed by es_exists... its just I forgot. :>

_________________
Insight Admin - View any players variable + lots more!


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-06-13, 10:33 am 

once i touch up a few things and test the new version i will release it

new commands include:
kick <userid or part of name>
live [sourcetv demo name]
map <map name>
notready - for readup
password <password or "remove>
ready - for readyup
readyup - start the readyup script
time - get the time

_________________
Insight Admin - View any players variable + lots more!


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-06-25, 9:06 pm 

Bump. Massive Update!

_________________
Insight Admin - View any players variable + lots more!


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-05, 9:35 am 

Bump. Quick fixes and some more stuff. !! v2.4 now latest!

_________________
Insight Admin - View any players variable + lots more!


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-05, 11:39 am 

Bump. Few bug fixes. Slight overall of the readyup script - now has pretty colours. ^___^

_________________
Insight Admin - View any players variable + lots more!


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-07, 6:01 am 

Hello,

I have a server dedicated on my PC and order IP hostport the local IP of my PC gives, how to make so that it is the IP Internet which is posted?


ip local : 192.168.X.X:27030 => is not accessible from outside
ip internet : 82.231.66.179:27030 => is accessible outside


thank you

_________________
Image
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-07, 6:14 am 

eric0279 wrote:
I have a server dedicated on my PC and order IP hostport the local IP of my PC gives, how to make so that it is the IP Internet which is posted?

ip local : 192.168.X.X:27030 => is not accessible from outside
ip internet : 82.231.66.179:27030 => is accessible outside

I guess your talking about the in_status etc. commands?

Unfortunately I don't think its possible. Its more a limitation of SourceDS than Eventscripts or Insight Admin. Basically you just get told what SourceDS thinks the IP is.

Quote:
I have the popup of welcome well but by writing in_help, in_fpsinfo etc... nothing is posted

If that happens again, just "es_reload insight". It has happened to me once or twice (out of about 100 times) I think its a problem with the es_regclientcmd command not working properly. Either that or a problem with corelib/usermsg not being loaded (I think this might actually be the problem to be honest).

_________________
Insight Admin - View any players variable + lots more!


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-07, 6:43 am 

not, that is posted in the popup showing us the message welcome.

Now it has to replace the local IP by localhost lol: ( Damage... because those which will take the IP to post will see the dead server.


Quote:
I have the popup of welcome well but by writing in_help, in_fpsinfo etc... nothing is posted



Small error of my leave, that functions only by the console.

_________________
Image
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-07, 6:55 am 

I don't fully understand your reply. Could you post it in French and I'll use a translator. Or is there a French member that can help me? :>

_________________
Insight Admin - View any players variable + lots more!


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-07, 7:02 am 

mon ip local 192.168.X.X:27030 est afficher en localhost maintenant.


Dommage qu'on ne peut pas modifier pour cela affiche mon ip internet car les joueurs qui viennent verront l'ip locale et en la mettant dans les favoris de steam, le serveur sera en timeout... logique...

Quote:
I have the popup of welcome well but by writing in_help, in_fpsinfo etc... nothing is posted


les commandes in_help, in_fpsinfo etc... ne fonctionnent pas dans le chat mais uniquement par la console.


Désolé pour anglais incompréhensible...

_________________
Image
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-07, 7:13 am 

Ok. :)

Yes as I said it uses whatever SourceDS defines the IP as (usually using your LAN IP and not your WAN (Internet) IP). I will add an option so you can set insight_ipaddress and that will appear in all the commands and the popup.

And as for in_help etc. they are console only commands because the information they output can only be sent to console (its too big to be outputted elsewhere, ie. as a popup or as a server message).

Hope that helps. :)

_________________
Insight Admin - View any players variable + lots more!


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-07, 7:17 am 

ok donc j'attend la prochaine mise à jour pour insight_ipaddress.


Quote:
And as for in_help etc. they are console only commands because the information they output can only be sent to console (its too big to be outputted elsewhere, ie. as a popup or as a server message).



Je pense avoir compris. ;)

_________________
Image
Image


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-07, 9:40 pm 

Un petit bug :


Insight L'Admin est [ event_var(es_username) event_var(es_steamid) ] authentifié

_________________
Image
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-08, 1:44 am 

Sorry I'm not sure what the bug is. If you are an admin that will come up when you join a server. If not you will get "Insight Player".

_________________
Insight Admin - View any players variable + lots more!


User avatar
Guru
Guru
Profile

Posts: 1791
 
New postPosted: 2007-07-08, 6:37 am 

yes I am admin of my server.


Code:
es_set insight_adminlist "STEAM_0:1:12157180 STEAM_0:0:9797834 STEAM_0:1:12174842" "Insight Admin STEAMID List" // Mettez un espace entre chaque STEAMID
   //   Nom de l'admin :loladmin1


It's correct ?

_________________
Image
Image


User avatar
Experienced
Profile

Posts: 391
 
New postPosted: 2007-07-08, 7:01 am 

ES:
    es_set insight_adminlist "STEAM_0:1:12157180 STEAM_0:0:9797834 STEAM_0:1:12174842"


Should be:
ES:
    es_set insight_adminlist "STEAM_0:1:12157180 STEAM_0:0:9797834 STEAM_0:1:12174842 "


It needs a space at the end otherwise the last guy wont be an Admin. :P

_________________
Insight Admin - View any players variable + lots more!


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group