View Single Post
Antithasys
Moderator
Join Date: Apr 2008
Old 01-06-2009 , 14:35   Re: Country Nick Plugin
Reply With Quote #5

Quote:
Originally Posted by AeN0 View Post
Known bugs :
  • Flag is not set back when players changes his/her nickname ingame (need help on this one, I get infinite loop : hooked player_changename, when player changes name, player_changename is fired, I add the flag into the new nick and set the new nick, player_changename is fired again, etc.)
  • The plugin does not use the translation layer of soucemod. It's only two phrases so ... edit and recompile source.
1. When you set the player name, it follows a certain format. (country-name) or something. So you know how it should look. So what you need to do to stop the loop is simple; check if the name is formated the way you need it, and if so, return Plugin_Continue on the name change event.

2. Adding translation support is very easy, consider doing it. If you need code examples just ask.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline