Raised This Month: $32 Target: $400
 8% 

[Module]UTF-8 Gaming


Post New Thread Reply   
 
Thread Tools Display Modes
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 02-08-2012 , 13:32   Re: [Module]UTF-8 Name
Reply With Quote #21

Quote:
Originally Posted by Arkshine View Post
Compiled linux.

Tested fastly on my linux test server and it seems to work :

[IMG]http://img141.**************/img141/7228/20120208161710.png[/IMG]

Thanx
__________________
kiki33hun is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-27-2012 , 12:26   Re: [Module]UTF-8 Name
Reply With Quote #22

Can you change this to work like this?

Right now in the txt file, you must contain the full name:

Quote:
"AMX" "AM×"
But I need only containing so something like this:

Quote:
"xx" "×"
So basically it gets the name and replaces it, if the name contains the character in the name.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 02-27-2012 , 12:33   Re: [Module]UTF-8 Name
Reply With Quote #23

Quote:
Originally Posted by bibu View Post
Can you change this to work like this?

Right now in the txt file, you must contain the full name:



But I need only containing so something like this:



So basically it gets the name and replaces it, if the name contains the character in the name.
sorry I don't know what you want .(poor in en)
maybe you can make a photo or something that look like easy to be read
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
bibu
Veteran Member
Join Date: Sep 2010
Old 02-27-2012 , 12:51   Re: [Module]UTF-8 Name
Reply With Quote #24

Look for now it works like this:

"bebo" "bébř"

But I want to work like this:

Quote:
"ee" "é"
"oo" "ř"
So basically I join with this name:

beeboo, and it changes to bébř.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 02-27-2012 , 23:33   Re: [Module]UTF-8 Name
Reply With Quote #25

you can just use replace_all to do it !
and then use set_utf8_name !
I think will work !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 02-28-2012 , 02:17   Re: [Module]UTF-8 Name
Reply With Quote #26

As I said, work fine!
code here !
Code:
#include <amxmodx> native set_utf8_name(index, uname[]);   #define PLUGIN_NAME "NewPlugin" #define PLUGIN_VERSION "0.1" #define PLUGIN_AUTHOR "LittleKu-Lv"   new username[33][32]; new Array:g_aname; new Array:g_uname; new line;   public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);     g_aname = ArrayCreate(32);     g_uname = ArrayCreate(32);     register_clcmd("say", "cmdsay"); }   public cmdsay(id) {     new cmd[38]     new arg1[5], arg2[32]     read_args(cmd, 37)     remove_quotes(cmd)     if (parse(cmd, arg1, 4, arg2, 31) == 2)     {     if (equali(arg1, "name"))         {             set_utf8_name(id, arg2);             return PLUGIN_HANDLED;         }     }     return PLUGIN_CONTINUE }   public client_putinserver(id) {     get_user_name(id, username[id], charsmax(username[]))     set_task(5.0, "rename", id, _, _, "b") }   public rename(id) {     new aname[32], uname[32];       if (is_user_alive(id))     {         for(new i = 0; i < line; i++)         {             ArrayGetString(g_aname, i, aname, charsmax(aname));             ArrayGetString(g_uname, i, uname, charsmax(uname));             if (contain(username[id], aname))             {                 replace_all(username[id], charsmax(username[]), aname, uname);             }         }         set_utf8_name(id, username[id]);         remove_task(id);     } } public client_disconnect(id) {     username[id][0] = '^0'; }   public plugin_cfg() {     new buffer[256], enname[32], cnname[32];     new fp = fopen("uname.txt", "rt")     if (!fp)         return ;     while (!feof(fp))     {         fgets(fp, buffer, charsmax(buffer))         trim(buffer)         if (buffer[0] == ';' || buffer[0] == '/' && buffer[1] == '/') continue         if (strlen(buffer) > 3 && buffer[0] == -17 && buffer[1] == -69 && buffer[2] == -65)//BOM         {             copy(buffer, charsmax(buffer), buffer[3])         }         parse(buffer, enname, charsmax(enname), cnname, charsmax(cnname))         ArrayPushString(g_aname, enname);         ArrayPushString(g_uname, cnname);         line++     }     fclose(fp); }
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
sb123
Senior Member
Join Date: Jan 2007
Old 03-01-2012 , 01:25   Re: [Module]UTF-8 Name
Reply With Quote #27

voice label fix patch
Attached Files
File Type: zip cstrike.zip (443.2 KB, 183 views)
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 03-01-2012 , 01:49   Re: [Module]UTF-8 Name
Reply With Quote #28

Quote:
Originally Posted by sb123 View Post
voice label fix patch
Of course, I known this one,
but there is not allow change something about the client side here !
and the best way is just like Rulzy upatch module !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-01-2012 , 04:28   Re: [Module]UTF-8 Name
Reply With Quote #29

Req:
Can you add to this module string encoding/decoding abilities?
Or natives that allow you to print to a user UTF-8 strings and also format them?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 03-01-2012 , 13:28   Re: [Module]UTF-8 Name
Reply With Quote #30

Quote:
Can you add to this module string encoding/decoding abilities?
what do want encoding/decoding ?

Quote:
Or natives that allow you to print to a user UTF-8 strings and also format them?
do you want to print UTF-8 strings in chat ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Reply


Thread Tools
Display Modes

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 13:51.


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