Raised This Month: $ Target: $400
 0% 

[INC] Director Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2011 , 10:34   Re: [INC] Director Hud Message
Reply With Quote #51

That's the not right place to ask for support since your problem is not related to dhud.
I can't help more you don't show enough code and you explain nothing. Please go to the scripting section.
If you think I'm wrong and the dhud functions have some issues, please provide more informations and explain better.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-12-2011 , 12:31   Re: [INC] Director Hud Message
Reply With Quote #52

Do you plain to add LANG_PLAYER support ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2011 , 17:31   Re: [INC] Director Hud Message
Reply With Quote #53

Sure.

Functions updated.
Added support for LANG_PLAYER.

Thanks to report any bugs.

EDIT : updated again, just small modifications.
EDIT2 : fixed a typo.
__________________

Last edited by Arkshine; 02-13-2011 at 18:44.
Arkshine is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 02-16-2011 , 16:54   Re: [INC] Director Hud Message
Reply With Quote #54

Great stuff!
The thing I like the most is the font, a little bigger and sharper!
Any idea how to make multiple messages look like one?
I have a message displaying once/second and it looks shitty (flicking & stuff), I've tried different settings with fxtime 0, effect 0, duration 0.9-1, fade 0-0.1 and so on, without positive results.
I need it to look like a HUD thing, like it's always there, just changing content.
__________________
ehha is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 02-20-2011 , 08:01   Re: [INC] Director Hud Message
Reply With Quote #55

I can't get mlang to work properly. Once it displays player language and other time server language.

Quote:
show_dhudmessage(id, "%L", LANG_PLAYER, "LANG_SOMETHING")
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-20-2011 , 08:02   Re: [INC] Director Hud Message
Reply With Quote #56

Use 0, if you use LANG_PLAYER. LANG_PLAYER has to be used when you send the message to all players. If sent to one player, use the player's index instead.
__________________
Arkshine is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-23-2011 , 12:06   Re: [INC] Director Hud Message
Reply With Quote #57

ArkshineThis code Right for?
Code:
#include <amxmodx>
#include <cstrike>
new g_playerkilled[33];
new g_maxplayers = 32;
public plugin_init()
{
 register_plugin("Best Killer", "1.0", "Rulzy");
 register_event("DeathMsg","eDeathMsg", "a", "1>0");
 register_event("HLTV", "eNewRound", "a", "1=0", "2=0");
 register_logevent("eEndRound", 2, "0=World triggered", "1=Round_End");
 g_maxplayers = get_maxplayers();
}
public client_connect(id)
{
 g_playerkilled[id] = 0;
}
public eNewRound()
{
 for(new i=1; i<=g_maxplayers; i++)
  g_playerkilled[i] = 0;
}
public eDeathMsg()
{
 new killer=read_data(1);
 if(!is_user_connected(killer)) return PLUGIN_CONTINUE;
 new victim=read_data(2);
 if(!is_user_connected(victim)) return PLUGIN_CONTINUE;
 if(get_user_team(killer)==get_user_team(victim)) return PLUGIN_CONTINUE; //TK
 g_playerkilled[killer]++;
 return PLUGIN_CONTINUE;
}
public eEndRound()
{
 new msg[513], maxkillcount = 0, maxkillplayercount = 0;
 new ipos=format(msg, 512,"The Name of player who Most Kills^n");
 new maxkillplayerlist[32];
 for(new i=1; i<=g_maxplayers; i++)
 {
  if(!is_user_connected(i)) continue;
  if(g_playerkilled[i]>maxkillcount)
  {
   maxkillcount = g_playerkilled[i];
   maxkillplayercount = 1;
   maxkillplayerlist[maxkillplayercount-1] = i;
   }else if(g_playerkilled[i]==maxkillcount){
   maxkillplayercount++;
   maxkillplayerlist[maxkillplayercount-1] = i;
  }
 }
 if(maxkillcount>0)
 {
  new name[33];
  ipos+=format(msg[ipos],512-ipos,"(Killed %d People)^n覧覧覧覧覧覧覧覧^n", maxkillcount);
  if(maxkillplayercount<=3)
  {
   for(new i=0; i<maxkillplayercount; i++)
   {
    get_user_name(maxkillplayerlist[i], name, 31);
    ipos+=format(msg[ipos], 512-ipos, "%s^n", name);
   }
   }else{
   for(new i=0; i<2; i++)
   {
    get_user_name(maxkillplayerlist[i], name, 31);
    ipos+=format(msg[ipos], 512-ipos, "%s^n", name);
   }
   ipos+=format(msg[ipos],512-ipos,"......^n")
  }
  }else{
  ipos+=format(msg[ipos],512-ipos,"覧覧覧覧覧覧覧覧^nNo people is Killed in this Round !^n")
 }
 set_dhudmessage(80, 180, 101, -1.0, 0.6, 2, 0.02, 4.0, 0.02, 5.0);
 show_dhudmessage(0, msg);
}
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-23-2011 , 12:23   Re: [INC] Director Hud Message
Reply With Quote #58

If you post here, it means you have a problem or/and request. So, what is your problem ?
__________________
Arkshine is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-23-2011 , 12:33   Re: [INC] Director Hud Message
Reply With Quote #59

If I were to use your code is not the case?

set_hudmessage(80, 180, 101, -1.0, 0.6, 2, 0.02, 4.0, 0.02, 5.0, 2);
show_hudmessage(0, msg);

change

set_dhudmessage(80, 180, 101, -1.0, 0.6, 2, 0.02, 4.0, 0.02, 5.0);
show_dhudmessage(0, msg);
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-23-2011 , 12:36   Re: [INC] Director Hud Message
Reply With Quote #60

And your problem is ... ? <- please fill the answer.
__________________
Arkshine 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 07:51.


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