Jump to content

Sponz

Members
  • Posts

    588
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Sponz

  1. na kanis pio analitiko to guide ime ilithios ti thes tora h kanis h den kanis
  2. fenete apo tin alagi thematon mporis na krivis ke pramata sta topic su.. ego den vlepw tipota gia opera.. gj
  3. yes i tryied to 27000 27020 but nothing... any idea ?
  4. If you want to e.g. get the number and names of all player who are currently playing on a CS-server, you have to send a so-called "query" to this server (using UDP) and handle everything the server sends back to you. This isn't as easy as it sounds. At first, you would have to 'learn', or, at least, understand the protocol a CS-server uses (e.g. what do I have to send to the server to get a 'good' reply and what's the structure of this reply). The following script echos the output to your active window. You will have to modify it to be able to use it as 'bot'. It's a more complex script and you don't need to understand it (completely) to be able to use it. ; HL server query snippet by Saturn ; ; 16-04-2009: update to protocol version 48 by NaNg ; 29-01-2011: update to fix UTF8 problem in mIRC 7.* and fixed name problems if last char is space by NaNg ; ; usage: ; /hlinfo <ip> <port> ; or: /hlinfo <ip>:<port> ; /hlplay <ip> <port> ; or: /hlplay <ip>:<port> ; the alias that opens a new socket if you want to get general information about a running CS-server alias hlinfo { if (!$2) tokenize 58 $1 ; using a dynamic socket name so we can use multiple instances at once var %sock = $+(hlinfo-,$ticks) ; construct the query to send to the server bset &t 1 255 255 255 255 bset -t &t 5 TSource Engine Query bset &t 25 0 ; actually open the socket, and send the query sockudp -k %sock $1-2 &t ; closing the socket after 60seconds if there is no response (else it will be closed by another event (see below)) .timer $+ %sock 1 60 sockclose %sock } ; this event will get all data sent back from the server on *:UDPREAD:hlinfo-*:{ ; save it in a binary variable sockread -f &reply ; set some local variables that we will use below var %offset, %name, %map, %game, %num, %max, %ip, %dir ; following the protocol, this "m" shows us that we queried a Half-Life 1 server if ($chr($bvar(&reply,5)) == m) { ; Half-Life 1 info reply %offset = 6 ; save the ip %ip = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; the same %name = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; the current map %map = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; the game directory %dir = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; the name of the game %game = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; current and maximum players %num = $bvar(&reply,%offset) %max = $bvar(&reply,$calc(%offset + 1)) } ; else we get data for a CS:Source game else { ; Source info reply ; we do the same as above %offset = 7 %name = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) %map = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) %dir = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) %game = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) %num = $bvar(&reply,$calc(%offset + 2)) %max = $bvar(&reply,$calc(%offset + 3)) } ; now we echo all stored details to the active window echo -a Info for $sock($sockname).saddr $+ : $+ $sock($sockname).sport echo -a Name: %name echo -a Map: %map echo -a Game: %game echo -a Players: %num $+ / $+ %max ; and turn off the timer closing the socket .timer $+ $sockname off ; as we can close it now manually sockclose $sockname } ; this is the alias that will be called from hlplay to open the socket alias hlchal { ; $1 = ip, $2 = port, $3- = what to call when received ; use dynamic socket name as above var %sock = $+(hlchal-,$ticks) ; construct the query to send to the server bset &t 1 255 255 255 255 85 255 255 255 255 ; open the socket, and ask for a player challenge number sockudp -k %sock $1-2 &t ; mark it with the ip and port (and the query we want to call when we've received something from the server) sockmark %sock $3- $1-2 ; and make a new timer to close it after 60 seconds .timer $+ %sock 1 60 sockclose %sock } ; read everything that comes back from the hlchal-* query on *:UDPREAD:hlchal-*:{ ; and save it in the binary variable called &reply sockread -f &reply ; actually call the alias saved in the sockmark (hlplay_query) $sock($sockname).mark $bvar(&reply,6,4) ; and turn the timer off because we can close it manually .timer $+ $sockname off sockclose $sockname } ; the alias we can call to make everything easier ; it will call other aliases to open sockets etc. alias hlplay { if (!$2) tokenize 58 $1 hlchal $1-2 hlplay_query } ; the alias that opens the _real_ socket to receive data (everything before was just to challenge the server (read the website mentioned above)) alias hlplay_query { ; set a binary variable bset &query 1 255 255 255 255 85 $3- ; use dynamic socket names again var %sock = $+(hlplay-,$ticks) ; open the socket sockudp -k %sock $1-2 &query ; and turn on the timer closing the socket after 60seconds .timer $+ %sock 1 60 sockclose %sock } ; this event will receive all data from the server as response to our query on *:UDPREAD:hlplay-*:{ ; we save it in &reply sockread -f &reply ; set some local variables we will use later var %i = 1, %num = $bvar(&reply,6), %offset = 7 var %count = 0, %name, %kills ; and echo the number of players echo -a Players on $sock($sockname).saddr $+ : $+ $sock($sockname).sport ; now we can loop through all player and save some details about them while (%i <= %num) { inc %offset ; the name %name = $bvar(&reply,%offset,128).text inc %offset $calc($len($bvar(&reply,%offset,128).text) + 1) ; the kills %kills = $bvar(&reply,%offset).long if ($isbit(%kills,32)) dec %kills $calc(2^32) inc %offset 8 ; and if there was a player if (%name != $null) { ; increase the variable that shows us the number of the player inc %count ; and echo it to the active window with the kills saved above echo -a %count $+ . %name - %kills } ; increase %i so we go on with the next player inc %i } ; if there are no players online, echo it aswell if (%count == 0) echo -a No players found! ; turn off the timer .timer $+ $sockname off ; and close the socket manually sockclose $sockname } Example: i hope i helped ya..
  5. Gia tous kamenous...gia tous mathites ite gia aftous pou aplos ine ston dromo apo tis 7-8...to proi sintonistite 95,2 athens DJ breakfast @ FM me ton mixali tsausopulo. Chat show me kseni musiki ke poli gelio!!! http://www.athensdeejay.gr/ Kalimera h kalitera .. kalinixta apo emena: D
  6. thanks usefull with some mods..
  7. to cheat engine ine ikoniko....nomizis oti kanis kapio idos ''cheat'' ala fenete mono stin dikia s othoni o pextis tha pigenei me to idio speed p pigene panta ke me to idio acurasy tha pezi..
  8. ak47 and m4a1 can zoom only on COD and maybe on CS:S
  9. http://imageshack.us/photo/my-images/715/72625099.jpg/
  10. Collection of Godlike's gatherbots Counterstrike source counterstrike 1.6 other scripts for the bot HF http://www.megaupload.com/?d=W2Z7BXCU password: godlike
  11. i give you free the new gatherbot:$ plz?:D
  12. Emeis fiesta esis visi ;) krima pou i sinavlia gia tin erasitexniki omada toy panathinaikou vgike mapa 4xiliarika pigane stin visi ke mpike mesa o athlitikos organismos ''PAO'' Fenete oti tsouzei kapia kompleksika ''atoma'' pou ine panta defteroi An thimame kala file mou to noumero pou itan stis gigantoothones toy gipedou ke stis faneles ton pexton itan 5400.An kanw lathos na me diorthosis ala exo tin entiposi pos itan to noumero pou ipa protitera ''magaki13'' ama den mporis mine theatis pao hool toy diadiktiou
  13. i open my ports( i think ...:S) i open HLDS get my ip from hlds or from www.whatsmyip.org and i get this error when i try to connect.. connect 192.168.1.66:27015 WARNING: UDP_OpenSocket: port: 27015 bind: WSAEADDRINUSE NET Ports: server 27015, client 27005 Could not get TCP/IP address, TCP/IP disabled Reason: WSAENOTSOCK Connecting to 192.168.1.66:2701 any help guyz...?via team viewer or smt? thanks in adv.
  14. Cvars: irc_server (default "") - The irc server to connect to irc_port (default "") - The irc server's port irc_nick (default "") - The nick to use while connecting irc_username (default "") - The "real name" of the bot irc_channel (default "") - The channel to join irc_identify (default 0; 0|1) - If you want to identify set this to 1 irc_ident (default "") - See info below irc_map_change (default 1; 0|1) - Set whether or not to display Server name, ip, map and players connected on map change and server start. irc_show_joins (default 1; 0|1) - Set whether or not to display a message when a player joins the server irc_to_hlds_say_auto (default 1; 0|1) - Set whether or not to automatically forward messages from IRC to the server irc_from_hlds_say_auto (default 1; 0|1) - Set whether or not to automatically forward messages from in game to IRC irc_to_hlds_say_activator (default "@hlds") - If irc_to_hlds_say_auto is 0, the string that needs to be included in the message to have it forwarded to the server irc_from_hlds_say_activator (default "!irc") - If irc_from_hlds_say_auto is 0, the string that needs to be included in the message to have it forwarded to IRC ------------ Say Cvars (set any of these to "" to disable them): irc_msg_srvjoin (default "$name ($steamid) has joined the server") - Message to IRC when user joins irc_msg_srvpart (default "$name ($steamid) has left the server") - Message to IRC when user leaves irc_msg_srvsay (default "<$name> $message") - Message to IRC when user says something in game irc_msg_srvteamsay (default "<($team) $name> $message") - Message to IRC when user team_say's something in game irc_msg_ircsay (default "*IRC* $name : $message") - Message, said to players, when IRC user says something irc_msg_startup (default "$servername - $ip Current Map: $map $curplayers / $maxplayers players") - Message to IRC when server starts or map changes. Available vars for irc_msg_srv* * $name - Person's name * $steamid - Person's steamid * $team - Person's team * $teamn - Person's team number * $message - What they said * $connected - How long they have been connected * $access - Persons access Available vars for irc* (except irc_msg_startup) * $name - Persons name * $message - Message Available vars for irc_msg_startup * $servername - Name of the server * $ip - IP of the server * $map - Name of the current map * $curplayers - Current number of players on the server * $maxplayers - Maximum players allowed on server ------------ Commands: irc connect - Connect to irc irc disconnect - Disc from irc irc say - Send message to irc irc help - Tells you where to go ------------ Commands from IRC: To use commands in the channel, add @ to the front of the command (ie @cmds) -cmds/commands/info/help - The bot will private message you (display from here on) a list of commands available from IRC. If you have admin access it will also PM you the list of admin commands you have access to. -map - Display current map -nextmap - Display nextmap -timeleft - Display timeleft -ip - Display server IP -users - Display users currently on the server -login <username> <password> - Login as an IRC admin -logout - Log out of IRC admining. You will be automatically logged out if you part the channel or quit IRC. ------------ Admin Commands from IRC (PM these to the bot): -amx_rcon <command line> - Just like the normal amx_rcon, but in IRC. You must put quotes around the string, ie. amx_rcon "map de_dust". -amx_cfg <config file name> - Just like the normal command. -amx_map <map name> - Just like the normal command. -amx_slay <name or #userid> - Just like the normal command. -amx_slap <name or #userid> <times> <damage> - Slap a player in game <times> times for <damage> damage each. -amx_kick <name or #userid> [reason] - Just like the normal command. ------------ Adding IRC Admins: 1) Start the server with the plugin installed, two files will be created: configs/ircadmins.ini and data/ircloggedin.list 2) In ircadmins.ini put users on seperate lines in the form "username" "password" "access flags" "unique id" 3) Have the user log in by PMing the bot: login username password Notes: -Access flags are exactly like the ones in users.ini, some flags have no commands attached right now but new versions will have more commands -Unique id MUST be unique for each user and can be whatever you want. The plugin uses it to keep track of admins. -Admins will stay logged in through map changes, nick changes and even server shut downs if they dont log out. -Admins will be automatically logged out if they part the channel or quit IRC (if the bot is there). -DO NOT edit ircloggedin.list, although it's plaintext, leave it alone. ------------ Ok, about irc_ident.. you have to use the raw IRC syntax for sending messages, it really isn't too complex. To do what /nickserv or /ns does in mirc "PRIVMSG nickserv :BLAHBLAH" To send a message to someone: "PRIVMSG someone :I'm Online" Get the picture? If you need help, either post or grab me on the channels mentioned above Menu stuff: Use the commands amx_ircmenu or say /irc. Default access level is admin_level_a which can be changed in the plugin. Access to this gives you control of main bot functions, like disc/connect FIX BELOW ok heres the ping fix .. i have tested for a day or two ... and this seems to be working ... First of all if your on QuakeNet or on GameSurge pick the closes irc server to your HLDS Server From the list below Quakenet Servers http://staff.quakenet.org/servers.phtml GameSurge http://www.gamesurge.net/servers/ Next heres an sample of that should be in your Server.cfg irc_server "Netfire.TX.US.GameSurge.Net" <= Your Server From list above irc_port 6667 <= port for HLDS to connect to IRC also in lists above irc_nick Servdd <= nick as Seen in IRC ROOM. irc_channel #nothingmatters <= chan irc_username servddd <= user name as Seen by IRC server could be wrong but it works LOL irc_identify 1 <=Set to one olny if you have an auth user name and password From your IRC Server IE GAMESURGE QUAKENET EFNET irc_ident "authserv auth USERNAME PASS " <=== given or made when you Create an Auth with the IRC Server E GAMESURGE QUAKENET EFNET irc_debug 0 <= if your having Problems use this Set to one and post any error msg... the Best way to stop from disconnecting it auth with the server for some reason it works ... Exsample OF WORKING GAME SURGE ACCOUNT !! as Seen in #randommapfun or #IRCHLDS Code: irc_server "65.19.161.32" irc_port "6667" irc_nick "Server" irc_channel #randommapfun irc_username "NMServer101" irc_identify 1 irc_ident "authserv auth NMServer101 PASS" Credits: Devicenull twistedeuphoria & {NM}JRBLOODMIST Download irc.sma: http://www.megaupload.com/?d=8XRB2DAK Download irc.amxx: http://www.megaupload.com/?d=F0OABDYU
  15. Looking for a hoster to give me full access on his HLDS for 1week.i need to test,recode my gatherbot. Server's owner will get the new bot for free Thanks in advance
×
×
  • Create New...