Raised This Month: $51 Target: $400
 12% 

HLTV inviter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:          Approver:   EKS (166)
IsoTeemu
New Member
Join Date: Oct 2005
Location: Waiting new Zelda
Old 10-17-2005 , 00:48   HLTV inviter
Reply With Quote #1

HLTV inviter
In all the complexity, this plugin invites (by using rcon) HLTV to server, when first player connects. And when last player leaves, disconnects (by using RCON again) HLTV from server.

Useful? Not much, since that is pretty same if you server is idling alone or with HLTV. Only purpose for this plugin comes that one server operator complained that HLTV should not record (he is using HLTV to record all events on server. He has a-lot-of-waste-diskspace to use) when server is empty. And this plugin accomplish it. (Yes, we _do_ know that empty records does not use much space, but it's more about looking pr0fe3ssi0n4l.)

Required settings
Obiously, plugin needs to know couple of things:
Code:
rq_hltv_ip       // Defines HLTV ip address
rq_hltv_port     // Defines HLTV port
rq_hltv_rcon     // Defines HLTV adminpassword (HLTV uses adminpassword as rconpassword replacement)
ip               // Should be already set. But tells HLTV your IP so it can connect to right server.
port             // Definetly set. Tells HLTV your server port to connect.
rq_hltv_disdelay // Optional. Wait N sec after last player leaves before disconnectin HLTV
Disclaimer
Uses code from redmist example code, which was 99% actually of tackling this.
And it has been tested briefly, but _not_ on production servers yet, so problems may occur.

(Latest version could be found at http://svn.rautakuu.org/repos/hlds/c...ltv_invite.sma)
Attached Files
File Type: sma Get Plugin or Get Source (hltv_invite.sma - 4214 views - 6.9 KB)
IsoTeemu is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-17-2005 , 00:55  
Reply With Quote #2

great job
nice use of sockets
Freecode is offline
Exodus666
Junior Member
Join Date: Jun 2005
Old 11-27-2005 , 10:26   Problems?
Reply With Quote #3

Does this work with listen server? dedicated ? I have to have open my HLTV.exe? What kind of installations i should have in cvars??
Exodus666 is offline
karo
New Member
Join Date: Dec 2005
Old 12-17-2005 , 16:24   Re: Problems?
Reply With Quote #4

i dont under stand how do i invite the HTLV
Quote:
i dont understand it is hltv_invite or what
karo is offline
coldkillerlips
Junior Member
Join Date: May 2006
Old 05-05-2006 , 00:22  
Reply With Quote #5

Quote:
Originally Posted by Freecode
great job
nice use of sockets
I agree very nice use.
coldkillerlips is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 05-06-2006 , 19:47  
Reply With Quote #6

ok i'm new in amxx so i don't know that much stuff. so after i put the plugins in plugins foler and scripting folder and then put the name in plugins.ini what do i do now?
k007 is offline
Send a message via MSN to k007
S@ndel
Junior Member
Join Date: Mar 2005
Old 05-23-2007 , 11:29   Re: HLTV inviter
Reply With Quote #7

dampt... it's not work...i guess...
somebody use this plugin???
I reedit source... change these strings
Quote:
register_cvar("rq_hltv_ip","yyy.yyy.yyy.yyy")
register_cvar("rq_hltv_port","27055")
register_cvar("rq_hltv_rcon","megahltvpass")
register_cvar("rq_hltv_disdelay","10.0")
register_cvar("ip","xxx.xxx.xxx.xxx")
register_cvar("port","27015")
where yyy.. ip of hltv server and xxx... ip of cs server

log of hlds:
Quote:
...
L 05/23/2007 - 17:50:40: "Dedicated-Server<417><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:40: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:40: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:41: "Dedicated-Server<418><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:41: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:41: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:41: "Dedicated-Server<419><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:41: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:41: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:42: "Dedicated-Server<420><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:42: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:42: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:42: "Dedicated-Server<421><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:42: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:42: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:42: "Dedicated-Server<422><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:43: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:43: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:43: "Dedicated-Server<423><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:43: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:43: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:43: "Dedicated-Server<424><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:43: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:43: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:44: "Dedicated-Server<425><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:44: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:44: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:44: "Dedicated-Server<426><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:44: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:44: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
yyy.yyy.yyy.yyy:27055:reconnect
L 05/23/2007 - 17:50:45: "Dedicated-Server<427><STEAM_ID_LAN><>" connected, address "yyy.yyy.yyy.yyy:27055"
L 05/23/2007 - 17:50:45: Dedicated-Server [IP: yyy.yyy.yyy.yyy:27055] has connected.
L 05/23/2007 - 17:50:45: [hltv_invite.amxx] Calling HLTV to join the party (connect xxx.xxx.xxx.xxx:27015).
...
log of hltv:
Quote:
...
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
Get challenge (HASHEDCDKEY)
Connecting to xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "connect xxx.xxx.xxx.xxx:27015" from xxx.xxx.xxx.xxx2778.
Challenging xxx.xxx.xxx.xxx:27015 (1/3).
Executing rcon "autoretry 1" from xxx.xxx.xxx.xxx2778.
...
I can't understand... i do something wrong or plugin didn't work???
S@ndel is offline
Send a message via ICQ to S@ndel
bumbastik
Member
Join Date: Jan 2007
Old 07-02-2007 , 06:40   Re: HLTV inviter
Reply With Quote #8

No it not work(
bumbastik is offline
bumbastik
Member
Join Date: Jan 2007
Old 07-02-2007 , 07:08   Re: HLTV inviter
Reply With Quote #9

Code:
 register_cvar("rq_hltv_ip","127.0.0.1") // HLTV server address
    register_cvar("rq_hltv_port","27030")   // HLTV server port
    register_cvar("rq_hltv_rcon","5568")        // HLTV server rcon

    register_cvar("rq_hltv_disdelay","30.0")

    // Thease should be defined already, but just to be sure...
    register_cvar("ip","192.168.1.12")         // My IP
    register_cvar("port","27015")           // My port
And I see in console:
L 07/02/2007 - 15:066: [HLTVautorun.amxx] HLTV connection not available, trying to reconnect...
L 07/02/2007 - 15:066: [HLTVautorun.amxx] There is no HLTV rcon set. Set cvar rq_hltv_rcon or begone...

So I opened console in game and enter rq_hltv_rcon 5568. And what? It write "Unknown Command"

And I want to know - What is new taskID=7234? For that?
bumbastik is offline
YaMaKaSi92
Member
Join Date: Nov 2007
Location: Poland
Old 12-27-2007 , 22:36   Re: HLTV inviter
Reply With Quote #10

Great Job ! Nice
YaMaKaSi92 is offline
Send a message via Skype™ to YaMaKaSi92
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode