Raised This Month: $ Target: $400
 0% 

Can this plugin works?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-13-2009 , 05:17   Re: Can this plugin works?
Reply With Quote #4

Actually:
PHP Code:
client_cmdid"name ^"%s^""whatever ); 
But this is more efficient:
Code:
#include <amxmodx> #include <fakemeta> #include <amxmisc> #define PLUGIN_NAME "No Name Change" #define PLUGIN_VERSION "0.1" #define PLUGIN_AUTHOR "VEN" new const g_reason[] = "[NNC] Sorry, name change isn't allowed on this server!" new const g_name[] = "name" public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_forward(FM_ClientUserInfoChanged, "fwClientUserInfoChanged") } public fwClientUserInfoChanged(id, buffer) {     if (!is_user_connected(id))         return FMRES_IGNORED;     if ( is_user_admin ( id ) )         return PLUGIN_HANDLED;     static name[32], val[32]     get_user_name(id, name, sizeof name - 1)     engfunc(EngFunc_InfoKeyValue, buffer, g_name, val, sizeof val - 1)     if (equal(val, name))         return FMRES_IGNORED;     engfunc(EngFunc_SetClientKeyValue, id, buffer, g_name, name)     console_print(id, "%s", g_reason)     return FMRES_SUPERCEDE; }
I can't find the thread, so i posted the code.
__________________

anakin_cstrike is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode