View Single Post
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-22-2012 , 19:36   Re: [WW] Whats wrong
Reply With Quote #2

Quote:
Originally Posted by Artifact View Post
PHP Code:
new serverip
...
public 
plugin_init() {
.....
}
public 
something (id) {
client_cmd(id"Connect %s"get_pcvar_num(serverip))
return 
PLUGIN_HANDLED

Code:
usage: connect <server>
Code:
new szServerIp[ 30 ]; get_pcvar_string( serverip, szServerIp, charsmax( szServerIp ) ); client_cmd(id, "Connect %s", szServerIp );
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty