Raised This Month: $ Target: $400
 0% 

Ban with server_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Schwabba
Senior Member
Join Date: Apr 2008
Old 10-23-2010 , 15:33   Ban with server_cmd
Reply With Quote #1

PHP Code:
            new szSteamId[32]
            
get_user_authid(idszSteamIdcharsmax(szSteamId))
            
server_cmd("amx_ban 5 %s T-Leave"szSteamId
PHP Code:
amx_ban
Anwendung
:  amx_ban <time in mins> <steamID or nickname or #authid or IP> <reason 
Mhh?

Last edited by Schwabba; 10-23-2010 at 15:37.
Schwabba is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-23-2010 , 15:53   Re: Ban with server_cmd
Reply With Quote #2

PHP Code:
%
->
PHP Code:
%
Vechta is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-23-2010 , 16:23   Re: Ban with server_cmd
Reply With Quote #3

Quote:
Originally Posted by Vechta View Post
PHP Code:
%
->
PHP Code:
%
Fail.

@Schwabba: try this:
PHP Code:
            new szSteamId[32]
            
get_user_authid(idszSteamIdcharsmax(szSteamId))
            
server_cmd("amx_ban 5 ^"%s^" ^"T-Leave^""szSteamId
__________________
Impossible is Nothing
Sylwester is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-23-2010 , 18:37   Re: Ban with server_cmd
Reply With Quote #4

Quote:
Originally Posted by Vechta View Post
PHP Code:
%
->
PHP Code:
%
A SteamID is clearly not an integer. It has letters in it.
__________________
fysiks is offline
Schwabba
Senior Member
Join Date: Apr 2008
Old 10-24-2010 , 01:00   Re: Ban with server_cmd
Reply With Quote #5

PHP Code:
Bandetails     details    
    
Player     unknown_STEAM_0
:1:18733669
Bantype     SteamID
SteamID     STEAM_0
:1:18733669
Steam community profile     http
://steamcommunity.com/profiles/76561197997733067
IP address     unknown_STEAM_0:1:18733669
Invoked on     23
-10-2010 22:22
Banlength     5  minutes 
Expires on     23
-10-2010 22:27  (already expired)
Reason     T-Leave 
Banned by Admin     
-=[Pingstars]=- Deathrun ()
Banned on Server     -=[Pingstars]=- Deathrun (deathrun_coldzone)
Previous offences     0
Comments     No comments Add comment 
It works, but it does'nt detect the name
Schwabba is offline
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 10:28.


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