This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

About ban with display admin name.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-09-2010 , 11:57   About ban with display admin name.
Reply With Quote #1

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?
Attached Thumbnails
Click image for larger version

Name:	ug0333fa.jpg
Views:	137
Size:	23.9 KB
ID:	71434  
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 08-09-2010 , 12:28   Re: About ban with display admin name.
Reply With Quote #2

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"
__________________

Jack86 is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-10-2010 , 07:03   Re: About ban with display admin name.
Reply With Quote #3

I would like to replace it, but where is the code?
I could not find it...
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 08-10-2010 , 11:13   Re: About ban with display admin name.
Reply With Quote #4

In admincmd.sma if ur using default ban plugin.
__________________

Jack86 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-10-2010 , 18:50   Re: About ban with display admin name.
Reply With Quote #5

Near line 445.
__________________
fysiks is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-10-2010 , 21:51   Re: About ban with display admin name.
Reply With Quote #6

I tried myself, but I don`t know how to edit...
Can you post the edited code for me?
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox 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 00:00.


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