Raised This Month: $ Target: $400
 0% 

Amxbans Modifikation (Connection Attempts Blocked)


  
 
 
Thread Tools Display Modes
Eismann1976
Senior Member
Join Date: Feb 2006
Old 01-11-2009 , 13:02   Re: Amxbans Modifikation
#21

Das muss ich glatt mal ausprobieren. Betrifft das nur die eine Datei ?

Wie lasst ihr eigentlich die VAC - Bans eintragen ?
__________________
Eismann1976 is offline
Send a message via ICQ to Eismann1976
-=[BFC]=- Shooter_McGavin
Member
Join Date: Nov 2005
Location: Berlin
Old 01-11-2009 , 14:24   Re: Amxbans Modifikation
#22

Die check_player schreibt nur die erfolgten blocks in die sql datenbank....die spalte muss natürlich wie im ersten post erstellt werden.

dann muss natürlich noch die ban_list.tpl,ban_list.php,ban_details.tpl und die ban_details.php entsprechend geändert werden. Dort sollte man sich ein wenig mit php und sql auskennen.


Nur dies bewirkt die meldung ingame beim blocken eines gebannten spielers....
Code:
log_amx("[AMXBANS] Blocked ID: %s - Nick: %s - Reason: %s", player_steamid, player_nick, ban_reason)
				set_hudmessage(255, 0, 0, -1.0, 0.15, 1, 6.0, 6.0, 0.1, 0.2, 0)
				show_hudmessage(0, "[AMXBANS] Blocked Player: %s %s Reason: %s", player_nick, player_steamid, ban_reason)
Die VAC Bans werden von Hand eingetragen...habe aber schon versucht das jemand ein plugin dafür schreibt, aber ohne erfolg!


mfg
Shooter
__________________
-=[BFC]=- Shooter_McGavin is offline
Send a message via ICQ to -=[BFC]=- Shooter_McGavin
Eismann1976
Senior Member
Join Date: Feb 2006
Old 01-12-2009 , 09:07   Re: Amxbans Modifikation
#23

Hi,

Quote:
Originally Posted by -=[BFC]=- Shooter_McGavin View Post
dann muss natürlich noch die ban_list.tpl,ban_list.php,ban_details.tpl und die ban_details.php entsprechend geändert werden. Dort sollte man sich ein wenig mit php und sql auskennen.
Könntest du Deine Veränderungen mal posten ? Hast zwar Mods drin aber die hab ich auch. Allein bekomm ich das sicher nicht hingebastelt.

Gruß Eismann
__________________
Eismann1976 is offline
Send a message via ICQ to Eismann1976
-=[BFC]=- Shooter_McGavin
Member
Join Date: Nov 2005
Location: Berlin
Old 01-13-2009 , 06:48   Re: Amxbans Modifikation
#24

huhu...weis leider nicht ob es hier im Forum gestattet ist php,template umbauten zu posten, weil ist ja ein amxx Forum!!! ;)
__________________
-=[BFC]=- Shooter_McGavin is offline
Send a message via ICQ to -=[BFC]=- Shooter_McGavin
SeToY
SourceMod Donor
Join Date: Jul 2006
Location: Germany
Old 01-13-2009 , 09:58   Re: Amxbans Modifikation
#25

Quote:
Originally Posted by Eismann1976 View Post
Wie lasst ihr eigentlich die VAC - Bans eintragen ?
Würd ich auch gerne wissen
__________________
Success is a lousy teacher. It seduces smart people into thinking they can't lose.
- Bill Gates

Quote:
Originally Posted by Hawk552
SeToY is a retard, scumbag and asshole and you shouldn't pretend that he isn't.
SeToY is offline
-=[BFC]=- Shooter_McGavin
Member
Join Date: Nov 2005
Location: Berlin
Old 01-13-2009 , 10:13   Re: Amxbans Modifikation
#26

Quote:
Originally Posted by SeToY View Post
Würd ich auch gerne wissen
Quote:
Originally Posted by -=[BFC]=- Shooter_McGavin View Post
Die VAC Bans werden von Hand eingetragen...habe aber schon versucht das jemand ein plugin dafür schreibt, aber ohne erfolg!
Habe hier schon versucht jemanden dazu zu bewegen, weil im sourcemod wurde es schon umgesetzt.
Hier
http://forums.alliedmods.net/showthread.php?t=81005

und hier

http://forums.alliedmods.net/showthread.php?t=83093


mfg
Shooter
__________________
-=[BFC]=- Shooter_McGavin is offline
Send a message via ICQ to -=[BFC]=- Shooter_McGavin
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 01-13-2009 , 10:13   Re: Amxbans Modifikation (Connection Attempts Blocked)
#27

Code:
 
new ban_length[50], ban_reason[255], admin_nick[100],admin_steamid[50],admin_ip[30],ban_type[4]
new player_nick[50],player_steamid[50],player_ip[30],server_name[100],server_ip[30],block_counter
 
new bid = SQL_ReadResult(query, 0)
new ban_created = SQL_ReadResult(query, 1)
SQL_ReadResult(query, 2, ban_length, 49)
SQL_ReadResult(query, 3, ban_reason, 254)
SQL_ReadResult(query, 4, admin_nick, 99)
SQL_ReadResult(query, 5, admin_steamid, 49)
SQL_ReadResult(query, 6, admin_ip, 29)
SQL_ReadResult(query, 7, player_nick, 49)
SQL_ReadResult(query, 8, player_steamid, 49)
SQL_ReadResult(query, 9, player_ip, 29)
SQL_ReadResult(query, 10, server_name, 99)
SQL_ReadResult(query, 11, server_ip, 29)
SQL_ReadResult(query, 12, ban_type, 3)
block_counter=SQL_ReadResult(query, 13)
 
 
if ( get_pcvar_num(amxbans_debug) == 1 )
log_amx("^nbid: %d ^nwhen: %d ^nlenght: %s ^nreason: %s ^nadmin: %s ^nadminsteamID: %s ^nPlayername %s ^nserver: %s ^nserverip: %s ^nbantype: %s ^nblocked: %d", bid,ban_created,ban_length,ban_reason,admin_nick,admin_steamid,player_nick,server_name,server_ip,ban_type,block_counter)
ich glaub nicht dass du für den block_counter einen array mit 255 zeichen benötigst ^^
das ist mir mal auf die schnelle aufgefallen, rest sieht auf den ersten blick ok aus. da es ja wohl auch funktioniert, passts.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
-=[BFC]=- Shooter_McGavin
Member
Join Date: Nov 2005
Location: Berlin
Old 01-13-2009 , 10:25   Re: Amxbans Modifikation (Connection Attempts Blocked)
#28

THX Shorty...Ok werde das dann mal abändern....war mir nicht bewusst was die [255] bewirkt, wusste nur das die [254] dann sein muss^^
Ok wieder was dazu gelernt....

Du hast den code in %d geändert? Es funktioniert aber auch mit %s, welchen unterschied gibt es zwischen s und d?


mfg
Shooter

P.s. Das einzige was noch nicht funktioniert, wenn Timebans durch einen Admin oder AMXBANS entbannt werden, das die block zahl auch in die History verschoben wird. Habe das einfach vernachlässigt und bringt auch keine Probleme...
__________________

Last edited by -=[BFC]=- Shooter_McGavin; 01-13-2009 at 10:36.
-=[BFC]=- Shooter_McGavin is offline
Send a message via ICQ to -=[BFC]=- Shooter_McGavin
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 01-13-2009 , 10:49   Re: Amxbans Modifikation (Connection Attempts Blocked)
#29

%d ist für eine zahl, z.b. new block_count
%s ist für einen string, z.b. new block_count[254]

natürlich funktioniert es auch mit deiner version, belegst aber 255 zellen mit deiner variablen, bei mir wird nur 1 zelle belegt.

wie hast du block_counter in der db definiert? INT?
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.

Last edited by |PJ| Shorty; 01-13-2009 at 10:51.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
ExKiLL
Senior Member
Join Date: Nov 2005
Location: Germany
Old 01-13-2009 , 12:22   Re: Amxbans Modifikation (Connection Attempts Blocked)
#30

könntest es ja einfach uploaden (irgendwo) und nur verlinken -> Hier z.B.

interessiert bestimmt viele!
__________________
193.192.59.43:27015 ----- italy ( 20 )
85.25.150.62:27015 ------ sHclachthaus ( 14 )
85.25.150.62:27055 ------ DeathMatch ( 20 )
85.25.150.62:27035 ------ Kreedz Hangout ( 18 )
85.214.100.160:27015 ---- 24/7 full house | **GG + DM** ( 32 )
93.190.64.150:27015 ----- Superhero (12)
ExKiLL is offline
 



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 05:07.


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