 |
|
Senior Member
|

08-20-2010
, 08:07
Re: Block name command
|
#6
|
Quote:
Originally Posted by lucas_7_94
PHP Code:
register_forward(FM_ClientUserInfoChanged, "Fwd_ClientInfoChanged")
[ ... ]
public Fwd_ClientInfoChanged(id, buffer) { if (!is_user_connected(id)) return FMRES_IGNORED; static val[32]; static name[33] get_user_name(id, name, charsmax(name)) engfunc(EngFunc_InfoKeyValue, buffer, "name", val, sizeof val - 1); if(equal(val, name)) return FMRES_IGNORED;
engfunc(EngFunc_SetClientKeyValue, id, buffer, "name", name); client_cmd(id, "name ^"%s^"; setinfo name ^"%s^"",name, name); return FMRES_SUPERCEDE; }
|
Do I need a particular library to compile this ?
|
|
|
|