Hi
I have a problem,I made a plugin to change the player's team to T when he tries to connects the server
this is my code
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <dbi>
#include <fakemeta>
#include <cstrike>
#define PLUGIN "mi1s0n"
#define VERSION "1.0"
#define AUTHOR "Milad Doorbash"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect(id)
{
cs_set_user_team(id,1)
}
I have sctrike_module.amxx file in modules folder and ctrike in modules.ini
when a player tries to connect server says
Code:
L 07/16/2012 - 10:29:39: [CSTRIKE] Invalid player 1
L 07/16/2012 - 10:29:39: [AMXX] Displaying debug trace (plugin "mi1s0n.amxx")
L 07/16/2012 - 10:29:39: [AMXX] Run time error 10: native error (native "cs_set_user_team")
any idea? please help