Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict between ChatManager and RankSystem #15

Open
kitaroar opened this issue Sep 4, 2022 · 2 comments
Open

Conflict between ChatManager and RankSystem #15

kitaroar opened this issue Sep 4, 2022 · 2 comments

Comments

@kitaroar
Copy link

kitaroar commented Sep 4, 2022

There is a conflict between ChatManager and RankSystem when the player change his name.

If the RankSystem is before ChatManager in plugins.ini the old player's name is show in the chat until the player changes the name again

If the RankSystem is after ChatManager in plugins.ini then the new player's name is show in the chat, but the rank in the hud is showing the old name. The name gets updated after a while

@kitaroar
Copy link
Author

kitaroar commented Sep 4, 2022

Found a workaround to this conflict

instead of this line

register_event("SayText", "OnSayTextNameChange", "a", "2=#Cstrike_Name_Change")
...
public OnSayTextNameChange(iMsg, iDestination, iEntity)
{
	g_fwdUserNameChanged = register_forward(FM_ClientUserInfoChanged, "OnNameChange", 1)
}

i use this trigger on both plugins

public client_infochanged(id) 
{ 
	g_fwdUserNameChanged = register_forward(FM_ClientUserInfoChanged, "OnNameChange", 1)
}

Maybe I need to check if the infochange is "#Cstrike_Name_Change", but for now both plugins are working well

@wildbiker88
Copy link

This was my problem too, thanks, it works! It also updates in the HUD as XP changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants