Raised This Month: $ Target: $400
 0% 

Simple redirection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 07-22-2007 , 14:59   Simple redirection
Reply With Quote #1

I want that the admins are excluded from redirection.
http://forums.alliedmods.net/showthread.php?p=10072

Can anyone modify the plugin.
__________________


I hate Spammers....
vl@d is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 07-22-2007 , 15:44   Re: Simple redirection
Reply With Quote #2

3 lines of code did it...

Enjoy.

EDIT:
Fixed thanks to sawce.
Attached Files
File Type: sma Get Plugin or Get Source (simple_redirect.sma - 732 views - 1.7 KB)

Last edited by hlstriker; 07-22-2007 at 23:03.
hlstriker is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 07-22-2007 , 16:05   Re: Simple redirection
Reply With Quote #3

ouch your a genius.
I will going to test it.
I will edit this post if it works or not.
__________________


I hate Spammers....
vl@d is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 07-22-2007 , 18:45   Re: Simple redirection
Reply With Quote #4

Clients do not have access flags issued during client_connect.

The earliest they have the flags would be in client_authorized.
__________________
fyren sucks
sawce is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 07-22-2007 , 23:02   Re: Simple redirection
Reply With Quote #5

I never knew that @_@

Thanks for clearing that up for me. Updated the plugin in the above post.
hlstriker is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 07-23-2007 , 06:58   Re: Simple redirection
Reply With Quote #6

yes but that wont afect the people who trying to connect to the server?
__________________


I hate Spammers....
vl@d is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-23-2007 , 23:11   Re: Simple redirection
Reply With Quote #7

client_authorized is called after client_connect, and before client_putinserver. It is called when they are asigned their STEAM_ID. It will work.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 07-24-2007 , 10:19   Re: Simple redirection
Reply With Quote #8

aha.
Thx to all.
__________________


I hate Spammers....
vl@d 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 21:33.


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