Clan_tag Problem
Hi all,i have few problems,with plugin.
#include <amxmodx> #define PLUGIN "Clan Tag on Respawn" #define VERSION "0.1" #define AUTHOR "Severnadze" #define MAXPLAYERS 32 #define TS 1 #define CTS 2 new bool:g_reset[MAXPLAYERS + 1] new g_checkname[MAXPLAYERS + 1] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("ResetHUD", "event_ResetHUD", "be") register_clcmd("say /na", "event_ResetHUD") } public client_putinserver(id) { g_reset[id] = true new name[32] g_checkname[id] = get_user_name(id, name, charsmax(name)) //g_checkname[id] = get_user_info(id, "name", name, charsmax(name)) } public event_ResetHUD(id) { if (g_reset[id]) { g_reset[id] = false new name[32] g_checkname[id] = get_user_name(id, name, charsmax(name)) //g_checkname[id] = get_user_info(id, "name", name, charsmax(name)) set_task(1.0, "checknames", id) } } public checknames(id) { if (get_user_team(id) == TS) client_cmd(id, "name ^"a.%s^"", g_checkname[id]) if (get_user_team(id) == CTS) client_cmd(id, "name ^"b.%s^"", g_checkname[id]) } I need the client nick saved before the change it self... It is like in gather-network.. I need help ! Sorry for my English ;] |
Re: Clan_tag Problem
amx_nick or force update on scoreboard :-?
|
Re: Clan_tag Problem
What do you want to do with this??
|
Re: Clan_tag Problem
I have no idea what you are trying to do, so I just optimized the last bit so that it would actually work...
PHP Code:
|
Re: Clan_tag Problem
FYI
get_user_name() has no return value. g_checkname[id] is not a string. |
Re: Clan_tag Problem
Quote:
Look that is foto : http://www.ipix.lt/images/93860666.jpg I need,for all the clan tags assigned .. CT'S Tag : a. T'S Tag : b. |
Re: Clan_tag Problem
search next time.. Heres the scoreboard tag http://forums.alliedmods.net/showthread.php?p=1047869
|
Re: Clan_tag Problem
Try using this:
http://forums.alliedmods.net/showpos...97&postcount=7 You will need to change the tags (obviously). Quote:
|
Re: Clan_tag Problem
fysiks,thnks ;]
|
| All times are GMT -4. The time now is 14:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.