AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to redirect people? (https://forums.alliedmods.net/showthread.php?t=167801)

ben_yaa 09-20-2011 10:57

how to redirect people?
 
i want to redirect people to another server,
i want to built it on a simple plugin.
how do i do it?
thanks!

Krle 09-20-2011 11:07

Re: how to redirect people?
 
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)



ben_yaa 09-20-2011 11:21

Re: how to redirect people?
 
amx? :|
where do i get amxmodx for sourcemod?

reinert 09-20-2011 11:24

Re: how to redirect people?
 
If you want help in sourcemod, then ask it in sourcemod section not amx :)

ben_yaa 09-20-2011 11:40

Re: how to redirect people?
 
#include <amxmodx>
that what he wrote in the code...
so i probably need amx for sorucemod, no?

Krle 09-20-2011 11:43

Re: how to redirect people?
 
i don't know scripting for sourcemod, sorry... maybe the functions are same, so just change amxmodx and try it :)

ben_yaa 09-20-2011 12:29

Re: how to redirect people?
 
i need for SOURCEMOD...

drekes 09-20-2011 12:41

Re: how to redirect people?
 
Then post in the sourcemod section like reinert said

ben_yaa 09-20-2011 12:52

Re: how to redirect people?
 
ohhh
i did it by mistake :S
didnt notice that i put it in amx ><

tuty 09-21-2011 06:16

Re: how to redirect people?
 
Quote:

Originally Posted by Krle (Post 1559474)
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


All times are GMT -4. The time now is 19:34.

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