Raised This Month: $ Target: $400
 0% 

Kick message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-03-2011 , 05:52   Kick message
Reply With Quote #1

You know that when you get kicked the kicked client is getting disconnect with a shown window ( a pop-up window) saying: "Kicked: Kicked from the server" or something like that...

How do I make a window like that if for example I make him disconnect I send him a message like that in this window?
Diegorkable is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-03-2011 , 06:04   Re: Kick message
Reply With Quote #2

amx_kick "Nick" "Message"

That's easy..
__________________
Artifact is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-03-2011 , 18:03   Re: Kick message
Reply With Quote #3

I tried doing server_cmd("amx_kick "Nick" "Message") ofcourse that instead of nick and message i put the player's nickname and the reason, but the server isn't an AMX admin so I guess the command doesn't work because of that, I want to execute that command but without client_cmd cuz i dont know if at the same time an admin is connected or not, how can I still execute amx_kick or kick with a pop-window like i said in the first post?
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-03-2011 , 18:20   Re: Kick message
Reply With Quote #4

The server should have access to the command. You can test by trying it manually from the server console (or HLSW).

However, like I said in my PM, you should probably use the server command that amx_kick uses.
__________________
fysiks is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-04-2011 , 04:12   Re: Kick message
Reply With Quote #5

If you want to plugin kick someone with reason try this:
PHP Code:
server_cmd("kick #%d ^"Something there ^""get_user_userid(id)) 
__________________
Artifact 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 12:49.


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