@hleV
You shouldn't check before setting it.
If you just set it, it won't give it to the player if he/she already has it.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("Free NVG", "0.1", "Exolent");
register_clcmd("say /nvg", "CmdNVG");
}
public CmdNVG(client)
{
cs_set_user_nvg(client, 1);
return PLUGIN_HANDLED;
}
__________________