How can I do so that when a user connects to the server, run a config on the user and check the setinfo _pw value?
I put some like this..
PHP Code:
public client_connect(id)
{
new name[32]
new setinfo[32]
client_cmd(id, "exec new.cfg")
get_user_name (id, name, 31)
get_user_info (id, "setinfo ^"_pw^"", setinfo, 31)
if (setinfo[id] == 2)
{
client_print(0, print_chat, "[AMXX] %s 's Setinfo _pw is %s", name, setinfo)
}
}
But didn't works..