Raised This Month: $ Target: $400
 0% 

redirect a steamid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 11-04-2005 , 20:04   redirect a steamid
Reply With Quote #1

alright, im kinda stuck here on how to redirect a specific steam id to another server... i kinda need a little help plz
Attached Files
File Type: sma Get Plugin or Get Source (redirect_steamid.sma - 122 views - 3.0 KB)
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 20:08  
Reply With Quote #2

Not sure what you're trying to do , but try this:

Code:
public plugin_init() {     register_plugin("Redirect","0.9.4","JTP10181 / sonic")     register_cvar("redir_steamid","STEAM_0:0:123456")     register_cvar("redir_server","127.0.0.1") } public client_connect(id) {     new steamid[33],redir[64],server[64]         get_cvar_string("redir_steamid",63)     get_cvar_string("redir_server",server,63)         get_user_authid(id,steamid,32)     if(equal(steamid,redir))         client_cmd(id,"connect %s",server)             return PLUGIN_HANDLED }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 11-04-2005 , 20:14  
Reply With Quote #3

im trying to send this specific person to a diff server by steamid

and i got a whole bunch of errors when i compile that u just told me
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 20:26  
Reply With Quote #4

Add #include <amxmodx>
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 11-04-2005 , 20:30  
Reply With Quote #5

i got an error saying this line doesnt meet argument or seomthing
get_cvar_string("redir_steamid",63)
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 20:37  
Reply With Quote #6

Sorry, screwed up in the pasting. try this:

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Redirect","0.9.4","JTP10181 / sonic")     register_cvar("redir_steamid","STEAM_0:0:123456")     register_cvar("redir_server","127.0.0.1") } public client_authorized(id) {     new steamid[33],redir[64],server[64]         get_cvar_string("redir_steamid",redir,63)     get_cvar_string("redir_server",server,63)         get_user_authid(id,steamid,32)     if(equal(steamid,redir))         client_cmd(id,"connect %s",server)             return PLUGIN_HANDLED }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 11-04-2005 , 20:47  
Reply With Quote #7

Thnx alot
No errors
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-04-2005 , 20:54  
Reply With Quote #8

did you remember to #include <amxmodx>?

EDIT: whoops, late post
XxAvalanchexX is offline
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 11-04-2005 , 22:02  
Reply With Quote #9

Yeah i remembered.. i hope it work so that person will be like "WTF... i cant join this server"
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
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 23:37.


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