AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   About ban with display admin name. (https://forums.alliedmods.net/showthread.php?t=134850)

GarbageBox 08-09-2010 11:57

About ban with display admin name.
 
1 Attachment(s)
How to change the message for player banned.
I would like to add the name of admin who banned the player.
What should I do?

Jack86 08-09-2010 12:28

Re: About ban with display admin name.
 
add/replace this into your ban function
PHP Code:

    format(reason,63,"Banned by %s",name)


    
server_cmd("kick #%d ^"%(%%s)^""userid2reasonbannedtemp)
    
server_cmd("banid %s %s"minutesauthid2)
    
server_cmd("writeid"


GarbageBox 08-10-2010 07:03

Re: About ban with display admin name.
 
I would like to replace it, but where is the code?
I could not find it...

Jack86 08-10-2010 11:13

Re: About ban with display admin name.
 
In admincmd.sma if ur using default ban plugin.

fysiks 08-10-2010 18:50

Re: About ban with display admin name.
 
Near line 445.

GarbageBox 08-10-2010 21:51

Re: About ban with display admin name.
 
I tried myself, but I don`t know how to edit...
Can you post the edited code for me?


All times are GMT -4. The time now is 21:52.

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