Solved....
I Made A function clcmd and an boolean array with all users .
When a User set The Cvar (function) I read The Parameter And Put it in to array
----Code------
PHP Code:
new bool:UsersED[33]={true,...} //Users That Enable/Disable Private Chat
...
register_clcmd("pm_enable","enabledisable")
...
public enabledisable(id) {
new Arg1[1]
read_args(Arg1,1)
if (Arg1[0]) {
switch (str_to_num(Arg1[0]))
{
case 1: {
UsersED[id] = true
}
case 0: {
UsersED[id] = false
}
default: console_print(id,"[PrivateChat] Invalid Parameters, Use <1|0>")
}
}
console_print(id,"[PrivateChat] Private Chat is %s",(UsersED[id]==true)?"Enabled":"Disabled")
return PLUGIN_HANDLED
}