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

[Dyn Native] ColorChat v0.3.2 (04 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 07-04-2013 , 13:04   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #201

Quote:
Originally Posted by ConnorMcLeod View Post
Yes, a case i hadn't think, fixed.
I'm afraid it still hasn't been fixed. Now it shows grey instead of my team color.

EDIT:

About this code
PHP Code:
Send_SayText(iReceiveriPlayerIdszMessage[])
{
    
message_begin(MSG_ONEgmsgSayText_iReceiver);
    
write_byte(iPlayerId iPlayerId iReceiver);
    
write_string(szMessage);
    
message_end();

iPlayerId = 0 will return server index, not return false or unfound or something like that, so it will print grey

so to fix it just change
PHP Code:
    write_byte(iPlayerId iPlayerId iReceiver); 
to
PHP Code:
    write_byte(iPlayerId iPlayerId iReceiver); 
EDIT 2: I'd like to request so that unassigned player will have normal color, not grey color.

Last edited by kNowo; 07-04-2013 at 13:20.
kNowo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-04-2013 , 18:51   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #202

iPlayerId = 0 uses iReceiver
Code is correct, i have tested and worked fine.

Spoiler



Please show your code.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 07-04-2013, 19:08
Bos93
This message has been deleted by Bos93. Reason: Connor, #define cm(%0) ( sizeof(%0) - 1 ) lol
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 07-04-2013 , 19:29   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #203

Did another test just now and it worked as it should. I guess in my previous test I didn't recompile the .sma after i updated the chatcolor.sma but I was damn sure i did recompile it but anyway could you do my request on my last post above?
kNowo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-05-2013 , 00:28   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #204

No, code is already ok for what you asked, boolean check or >0 results the same here because you gonna never pass a negetive value.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 07-05-2013 , 03:29   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #205

Quote:
Originally Posted by ConnorMcLeod View Post
No, code is already ok for what you asked, boolean check or >0 results the same here because you gonna never pass a negetive value.
Actually, I asked for unassigned player color to be normal color, not grey like spectator. This is useful to me for multiple instances, like connect/disconnect message color.

example:
PHP Code:
public client_disconnect(id)
    
client_print_color(0id"^3%s ^1has left the game."g_szPlayerName[id]) 
If an unassigned player disconnects, players in the server knows that that player was not on any team because his name is normal-colored. Again, that's just one example of many that would be useful to me.
kNowo is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 07-05-2013 , 04:31   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #206

Where is the stock?
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-05-2013 , 11:37   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #207

UNASSIGNED is grey and gonna stay grey, you have to manage in the plugin if you want normal color.


Stock doesn't support ML, so i have removed it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-05-2013 , 13:03   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #208

Quote:
Originally Posted by ConnorMcLeod View Post
Stock doesn't support ML, so i have removed it.
That's sad . . . I bet 90% of people don't want or need ML.
__________________
fysiks is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 07-05-2013 , 13:29   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #209

Quote:
Originally Posted by ConnorMcLeod View Post
UNASSIGNED is grey and gonna stay grey, you have to manage in the plugin if you want normal color.


Stock doesn't support ML, so i have removed it.
I for my self don't use ML.

As fysiks said, most people here don't use ML, so you shouldn't remove it just because it doesn't support it.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-06-2013 , 04:34   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #210

Also, new method sends TeamInfo for fake indexes when players enter the server, so better in plugin.

Best thing would be to integrate this in amxx core.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-06-2013 at 04:35.
ConnorMcLeod is offline
Reply



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 01:07.


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