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

Alternative Redirect Menu (Updated 03/10/2013) v0.0.8


Post New Thread Reply   
 
Thread Tools Display Modes
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-16-2013 , 19:18   Re: Alternative Redirect Menu
Reply With Quote #11

Quote:
Originally Posted by Blizzard_87 View Post
Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)          register_clcmd("say /servers", "Music_Menu")     register_clcmd("say_team /servers", "Music_Menu") } public Music_Menu(id) {


when using code from your other plugins please remember to change the function names
Well iam little lazy ^^
So i used my code from music menu to do it, and forgot change that
Iam making new version, in update that will be fixed
__________________
Jhob94 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-16-2013 , 19:47   Re: Alternative Redirect Menu
Reply With Quote #12

Updated to second version.
Now you can disable plugin via cvar and it have 3 methods:
- Kick saying to connect server IP
- Chat Print saying to connect server IP
- Console Print server IP + Chat Print saying IP got printed in Console
__________________

Last edited by Jhob94; 05-16-2013 at 19:48. Reason: fix
Jhob94 is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-17-2013 , 06:10   Re: Alternative Redirect Menu
Reply With Quote #13

You can use as a kick method to have more lines in the kick window

PHP Code:
KickPlayer(id"Type in console^nconnect %s"szIp)

stock KickPlayer(idszBuffer[], any:...)
{
    static 
szReason[60]
    
vformat(szReasoncharsmax(szReason), szBuffer3)
    
    
message_begin(MSG_ONESVC_DISCONNECT,_id)
    
write_string(szReason)
    
message_end()

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 08:09   Re: Alternative Redirect Menu
Reply With Quote #14

Thanks pokemonmaster

Screenshots:

Method 1 - Kick


Method 2 - Print Chat


Method 3 - Console Print + Chat Print Warning Printed In Console
- The Chat Alert:


- Console Print:
__________________
Jhob94 is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 05-17-2013 , 09:14   Re: Alternative Redirect Menu
Reply With Quote #15

What happens, when server exec this to client? kick;connect server.com:27015
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 09:33   Re: Alternative Redirect Menu
Reply With Quote #16

you mean if others players knows he was redirected?
__________________
Jhob94 is offline
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 05-17-2013 , 12:14   Re: Alternative Redirect Menu
Reply With Quote #17

Bad way...
don't kick a player just print in his console:
Server name + Players/Max slots + Current map
then notify him to open his console (DHUD would be nice :D)
__________________

Last edited by AmineKyo; 05-17-2013 at 12:16. Reason: Thomas Bergersen - Dreammaker (Music confuses me(= )
AmineKyo is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 13:16   Re: Alternative Redirect Menu
Reply With Quote #18

Quote:
Originally Posted by AmineKyo View Post
Bad way...
don't kick a player just print in his console:
Server name + Players/Max slots + Current map
then notify him to open his console (DHUD would be nice )
I dont like DHUD and you can chose method via cvar

About players/max solts, idk how i can precache that values from another server...
__________________
Jhob94 is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-17-2013 , 13:30   Re: Alternative Redirect Menu
Reply With Quote #19

You should automatically open up the console for the player. By typing /severs I assume they want to get the IPs right away.

client_cmd( id, "toggleconsole" );
Decompiler is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-18-2013 , 08:02   Re: Alternative Redirect Menu
Reply With Quote #20

Hum i can add command /serversips for display all servers IPs in console
__________________
Jhob94 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 07:57.


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