Quote:
Originally Posted by OciXCrom
No, don't replace anything. Simply add #include <cromchat> to the code and you're done. Just add the color symbols in the language file.
|
PHP Code:
new cvar_val[64];
new maxpl = get_maxplayers();
for (new i = 1; i <= maxpl; i++)
{
if (is_user_connected(i) && !is_user_bot(i))
{
if (get_pcvar_flags(pointer) & FCVAR_PROTECTED || equali(arg, "rcon_password"))
{
formatex(cvar_val, charsmax(cvar_val), "*** %L ***", i, "PROTECTED");
}
else
{
copy(cvar_val, charsmax(cvar_val), arg2);
}
CromChat(i, id, name, "%L", i, "SET_CVAR_TO", "", arg, cvar_val);
}
}
error
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Error: Argument type mismatch (argument 2) on line 752
1 Error.
Could not locate output file D:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\admincmd.amx (compile failed).