Raised This Month: $32 Target: $400
 8% 

Plmenu with motd when player been banned


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 07-29-2014 , 06:36   Plmenu with motd when player been banned
Reply With Quote #1

Need motd with 3 seconds delay when player been banned i try with this but when players is banned i cant make to be kicked only show motd and thats it

PHP Code:
public ShowMotdBan(id)
{
    new 
motd[1501], len
    
    len 
format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>")
    
len += format(motd[len], 1500-len,"<center><font=^"ArialBlack^"><font size=^"8^"><font color=^"red^"><B>You Have BANNED!</B></color></size></font></center>^n")
    
len += format(motd[len], 1500-len,"<left><font=^"ArialBlack^"><font size=^"6^"><font color=^"blue^"><B>*CHECK YOUR CONSOLE!</B></color></size></font></left>^n")
    
    
show_motd(idmotd"BANNED!")
    
    return 
1;

Attached Files
File Type: sma Get Plugin or Get Source (plmenu.sma - 505 views - 32.6 KB)

Last edited by Ant1Lamer; 07-29-2014 at 06:58.
Ant1Lamer is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 08-20-2014 , 16:08   Re: Plmenu with motd when player been banned
Reply With Quote #2

upppp
Ant1Lamer is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-20-2014 , 16:22   Re: Plmenu with motd when player been banned
Reply With Quote #3

You wan't to kick the player OR you wan't something to be changed in your MOTD. I didn't understand the idea of the request at all...
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 08-20-2014 , 16:24   Re: Plmenu with motd when player been banned
Reply With Quote #4

Flick3eR beat me to it. If the player is banned, when would they see the MOTD?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 08-21-2014 , 01:26   Re: Plmenu with motd when player been banned
Reply With Quote #5

Quote:
Originally Posted by Flick3rR View Post
You wan't to kick the player OR you wan't something to be changed in your MOTD. I didn't understand the idea of the request at all...
Just show motd when player be banned like amxbans
Ant1Lamer is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-21-2014 , 03:39   Re: Plmenu with motd when player been banned
Reply With Quote #6

The you should just add
PHP Code:
//.....
set_task(2.0"delayKickPlayer"id)
}

public 
delayKickPlayer(id)
    if(
is_user_connected(id))
        
server_cmd("kick #%d ^"You are banned^""get_user_userid(id)) 
And this should make the delayed kick after ban.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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 11:27.


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