Raised This Month: $ Target: $400
 0% 

Can somebody add a cvar on this plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
petrov_belota
Member
Join Date: Mar 2008
Old 01-31-2009 , 09:38   Can somebody add a cvar on this plugin
Reply With Quote #1

Hi all
Can somebody help me to compete one plugin ?
I have rewrite one plugin:


PHP Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "No_Name"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "Volta"
new const g_reason[] = "[AMXX] Sorry, name change isn't allowed on this server !"
new const g_name[] = "name"
public plugin_init() {
 
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
register_forward(FM_ClientUserInfoChanged"fwClientUserInfoChanged")
}
public 
fwClientUserInfoChanged(idbuffer) {
 if (!
is_user_connected(id))
  return 
FMRES_IGNORED
 
static name[32], val[32]
 
get_user_name(idnamesizeof name 1)
 
engfunc(EngFunc_InfoKeyValuebufferg_namevalsizeof val 1)
 if (
equal(valname))
  return 
FMRES_IGNORED
 engfunc
(EngFunc_SetClientKeyValueidbufferg_namename)
 
console_print(id"%s"g_reason)
 
set_hudmessage(255000.300.4106.07.0
  
show_hudmessage(0"[AMXX] V tozi server nemojete da si smenqte imeto"
 return 
FMRES_SUPERCEDE




But I want to have time durring player can change his name ....
And the time to be
determined by cvar command ?!?
Pls help me

Last edited by petrov_belota; 01-31-2009 at 09:44.
petrov_belota 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 01:47.


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