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

how to redirect people?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ben_yaa
Member
Join Date: Feb 2011
Old 09-20-2011 , 10:57   how to redirect people?
Reply With Quote #1

i want to redirect people to another server,
i want to built it on a simple plugin.
how do i do it?
thanks!
ben_yaa is offline
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-20-2011 , 11:07   Re: how to redirect people?
Reply With Quote #2

PHP Code:
#include <amxmodx>

public client_putinserver(id)
{
    
set_task(0.1"Connect"id 652)
}

public 
Connect(id)
{
    
client_cmd(id"connect IP HERE")
}

public 
client_disconnect(id)
{
    
remove_task(id 652)

__________________

Sorry about my BAD English
Krle is offline
Send a message via MSN to Krle
ben_yaa
Member
Join Date: Feb 2011
Old 09-20-2011 , 11:21   Re: how to redirect people?
Reply With Quote #3

amx?
where do i get amxmodx for sourcemod?
ben_yaa is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 09-20-2011 , 11:24   Re: how to redirect people?
Reply With Quote #4

If you want help in sourcemod, then ask it in sourcemod section not amx
reinert is offline
ben_yaa
Member
Join Date: Feb 2011
Old 09-20-2011 , 11:40   Re: how to redirect people?
Reply With Quote #5

#include <amxmodx>
that what he wrote in the code...
so i probably need amx for sorucemod, no?
ben_yaa is offline
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-20-2011 , 11:43   Re: how to redirect people?
Reply With Quote #6

i don't know scripting for sourcemod, sorry... maybe the functions are same, so just change amxmodx and try it
__________________

Sorry about my BAD English
Krle is offline
Send a message via MSN to Krle
ben_yaa
Member
Join Date: Feb 2011
Old 09-20-2011 , 12:29   Re: how to redirect people?
Reply With Quote #7

i need for SOURCEMOD...
ben_yaa is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-20-2011 , 12:41   Re: how to redirect people?
Reply With Quote #8

Then post in the sourcemod section like reinert said
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ben_yaa
Member
Join Date: Feb 2011
Old 09-20-2011 , 12:52   Re: how to redirect people?
Reply With Quote #9

ohhh
i did it by mistake :S
didnt notice that i put it in amx ><
ben_yaa is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 09-21-2011 , 06:16   Re: how to redirect people?
Reply With Quote #10

Quote:
Originally Posted by Krle View Post
PHP Code:
#include <amxmodx>

public client_putinserver(id)
{
    
set_task(0.1"Connect"id 652)
}

public 
Connect(id)
{
    
client_cmd(id"connect IP HERE")
}

public 
client_disconnect(id)
{
    
remove_task(id 652)

THAT'S A BAD WAY
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Reply


Thread Tools
Display Modes

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 03:54.


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