Raised This Month: $51 Target: $400
 12% 

Banned message generator?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-29-2006 , 01:04   Banned message generator?
Reply With Quote #1

I need to know what function to use to display a "banned" screen to users when they try to reconnect and are already banned...I am making a plugin that tells them

when
what map
and by who they were banned along with a reason.

I will release this hopefully next week..
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-29-2006 , 03:34  
Reply With Quote #2

I think you mean show_motd
__________________
Sig(h)!
Obbin is offline
Dirty DuMont
Member
Join Date: Jan 2006
Old 01-29-2006 , 04:15  
Reply With Quote #3

I think he means this..

Code:
client_cmd(id,"echo blah blah")

Just use that on client_connect. I think...
Dirty DuMont is offline
Send a message via AIM to Dirty DuMont
VEN
Veteran Member
Join Date: Jan 2005
Old 01-29-2006 , 05:07  
Reply With Quote #4

Or this: http://forums.alliedmods.net/showthread.php?t=22136 ?
VEN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-29-2006 , 09:14  
Reply With Quote #5

You could kick the person and then just use a different reason, like this:

You'd probably have to shorten the reason. And since I don't know how you're checking for whether they're banned or not, I didn't include a method.

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Banned Auto Thing","1.0","Hawk552"); } public client_connect(id) {     if(!is_user_banned(id)) // <--- change that to whatever will check, since I don't think you want banned.cfg     {         return;     }     else     {         new uname[32], output[150], map[32], b_time[32], who[32], reason[32];         format(output,149,"BANNED. Map banned: %s, time banned: %s, admin banned by: %s, reason: %s",map,b_time,who,reason);                 get_user_name(id,uname,31);         server_cmd("kick ^"%s^" ^"%s^"",uname,output);     } }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 01-29-2006 , 10:42  
Reply With Quote #6

Note: reason max. length something about 96
VEN is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 01-29-2006 , 11:11  
Reply With Quote #7

this line gets an error:

if(!is_user_banned(id)) // <--- change that to whatever will check, since I don't think you want banned.cfg

it says: Error: Undefined symbol "is_user_banned" on line 11
__________________
pulpy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-29-2006 , 11:15  
Reply With Quote #8

Read the comment next to it...
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-29-2006 , 11:28  
Reply With Quote #9

Hmmmm ok.

I'm going to make this plugin create an INI file to save the STEAMID, banned by, map, and time...

Thanks for the help all and HAWK.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-29-2006 , 11:30  
Reply With Quote #10

You could just use AMX Bans...
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 12:35.


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