|
Senior Member
|
03-28-2015
, 13:25
Re: [req] hud /dhud
|
#4
|
Quote:
Originally Posted by Malli Bojan
#include <amxmodx>
#include <cstrike>
#include <fun>
#define PLUGIN_NAME "reset score"
#define PLUGIN_VERSION "2.1"
#define PLUGIN_AUTHOR "ChinTu"
new g_MsgSync
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("say /rs", "reset_score")
g_MsgSync = CreateHudSyncObj()
}
public reset_score(id)
{
new name[32]
get_user_name(id, name, 32)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_hudmessage ( 0, 255, 255, -1.0, 0.08 )
ShowSyncHudMsg ( id, g_MsgSync, "%s Has just reset his Score." )
return PLUGIN_HANDLED
}
|
nah this has bug :/
it reset scores but won't appear. mesage :'( fix plz... ?
Last edited by chintu; 03-28-2015 at 23:58.
|
|
|
|