Solved ze_effect_messages

Unpaid Requests, Public Plugins
johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

ze_effect_messages

#1

Post by johnnysins2000 » 7 years ago

I wanted To Request The ZE DEV TEAM

That in their next update or if they can do it now to show both huds

[Master Of Survival] Hud here on the left side and [Escape Leader] Hud here on the right side

I Hope u understand what i am trying to say
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 7 years ago

Can you explain more? Just try make photo with paint of how you need it. Anyway it will be simple just by edit the X , Y co-ordinates but give more details.
He who fails to plan is planning to fail

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#3

Post by Night Fury » 7 years ago

Raheem wrote: 7 years ago Can you explain more? Just try make photo with paint of how you need it. Anyway it will be simple just by edit the X , Y co-ordinates but give more details.
He wanna cvar shows both master of survival & escape leader.
We will talk about next update on FB.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#4

Post by johnnysins2000 » 7 years ago

Jack GamePlay wrote: 7 years ago
Raheem wrote: 7 years ago Can you explain more? Just try make photo with paint of how you need it. Anyway it will be simple just by edit the X , Y co-ordinates but give more details.
He wanna cvar shows both master of survival & escape leader.
We will talk about next update on FB.

Yes Exactly As Jack Has Said

I will Be waiting Guyz For This Plugin
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#5

Post by Raheem » 7 years ago

-Simply Edit:

  1. public Show_Speed_Message(id)
  2. {
  3.     if (get_pcvar_num(Cvar_Rank_iMode) == 0) // Disabled
  4.         return
  5.    
  6.     if (get_pcvar_num(Cvar_Rank_iMode) == 1) // Leader Mode
  7.     {
  8.         Speed_Stats()
  9.         new iLeaderID; iLeaderID = g_iEscapeRank[RANK_FIRST]
  10.        
  11.         if (is_user_alive(iLeaderID) && !ze_is_user_zombie(iLeaderID) && g_iEscapePoints[iLeaderID] != 0)
  12.         {
  13.             new szLeader[32]
  14.             get_user_name(iLeaderID, szLeader, charsmax(szLeader))
  15.            
  16.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  17.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szLeader)
  18.         }
  19.         else
  20.         {
  21.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  22.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szNone)
  23.         }
  24.     }
  25.    
  26.     if (get_pcvar_num(Cvar_Rank_iMode) == 2) // Rank Mode
  27.     {
  28.         Speed_Stats()
  29.        
  30.         new szFirst[32], szSecond[32], szThird[32]
  31.         new iFirstID, iSecondID, iThirdID
  32.        
  33.         iFirstID = g_iEscapeRank[RANK_FIRST]
  34.         iSecondID = g_iEscapeRank[RANK_SECOND]
  35.         iThirdID = g_iEscapeRank[RANK_THIRD]
  36.        
  37.         if (is_user_alive(iFirstID) && !ze_is_user_zombie(iFirstID) && g_iEscapePoints[iFirstID] != 0)
  38.         {
  39.             get_user_name(iFirstID, szFirst, charsmax(szFirst))
  40.         }
  41.         else
  42.         {
  43.             szFirst = szNone
  44.         }
  45.        
  46.         if (is_user_alive(iSecondID) && !ze_is_user_zombie(iSecondID) && g_iEscapePoints[iSecondID] != 0)
  47.         {
  48.             get_user_name(iSecondID, szSecond, charsmax(szSecond))
  49.         }
  50.         else
  51.         {
  52.             szSecond = szNone
  53.         }
  54.        
  55.         if (is_user_alive(iThirdID) && !ze_is_user_zombie(iThirdID) && g_iEscapePoints[iThirdID] != 0)
  56.         {
  57.             get_user_name(iThirdID, szThird, charsmax(szThird))    
  58.         }
  59.         else
  60.         {
  61.             szThird = szNone
  62.         }
  63.        
  64.         set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  65.         ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO", szFirst, szSecond, szThird)
  66.     }
  67. }

-To:

  1. public Show_Speed_Message(id)
  2. {
  3.     if (get_pcvar_num(Cvar_Rank_iMode) == 0) // Disabled
  4.         return
  5.    
  6.     if (get_pcvar_num(Cvar_Rank_iMode) == 1) // Leader Mode
  7.     {
  8.         Speed_Stats()
  9.         new iLeaderID; iLeaderID = g_iEscapeRank[RANK_FIRST]
  10.        
  11.         if (is_user_alive(iLeaderID) && !ze_is_user_zombie(iLeaderID) && g_iEscapePoints[iLeaderID] != 0)
  12.         {
  13.             new szLeader[32]
  14.             get_user_name(iLeaderID, szLeader, charsmax(szLeader))
  15.            
  16.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  17.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szLeader)
  18.         }
  19.         else
  20.         {
  21.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  22.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szNone)
  23.         }
  24.     }
  25.    
  26.     if (get_pcvar_num(Cvar_Rank_iMode) == 2) // Rank Mode
  27.     {
  28.         Speed_Stats()
  29.        
  30.         new szFirst[32], szSecond[32], szThird[32]
  31.         new iFirstID, iSecondID, iThirdID
  32.        
  33.         iFirstID = g_iEscapeRank[RANK_FIRST]
  34.         iSecondID = g_iEscapeRank[RANK_SECOND]
  35.         iThirdID = g_iEscapeRank[RANK_THIRD]
  36.        
  37.         if (is_user_alive(iFirstID) && !ze_is_user_zombie(iFirstID) && g_iEscapePoints[iFirstID] != 0)
  38.         {
  39.             get_user_name(iFirstID, szFirst, charsmax(szFirst))
  40.         }
  41.         else
  42.         {
  43.             szFirst = szNone
  44.         }
  45.        
  46.         if (is_user_alive(iSecondID) && !ze_is_user_zombie(iSecondID) && g_iEscapePoints[iSecondID] != 0)
  47.         {
  48.             get_user_name(iSecondID, szSecond, charsmax(szSecond))
  49.         }
  50.         else
  51.         {
  52.             szSecond = szNone
  53.         }
  54.        
  55.         if (is_user_alive(iThirdID) && !ze_is_user_zombie(iThirdID) && g_iEscapePoints[iThirdID] != 0)
  56.         {
  57.             get_user_name(iThirdID, szThird, charsmax(szThird))    
  58.         }
  59.         else
  60.         {
  61.             szThird = szNone
  62.         }
  63.        
  64.         set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  65.         ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO", szFirst, szSecond, szThird)
  66.     }
  67.    
  68.     if (get_pcvar_num(Cvar_Rank_iMode) == 3)
  69.     {
  70.         Speed_Stats()
  71.        
  72.         new szFirst[32], szSecond[32], szThird[32]
  73.         new iFirstID, iSecondID, iThirdID
  74.        
  75.         iFirstID = g_iEscapeRank[RANK_FIRST]
  76.         iSecondID = g_iEscapeRank[RANK_SECOND]
  77.         iThirdID = g_iEscapeRank[RANK_THIRD]
  78.        
  79.         if (is_user_alive(iFirstID) && !ze_is_user_zombie(iFirstID) && g_iEscapePoints[iFirstID] != 0)
  80.         {
  81.             get_user_name(iFirstID, szFirst, charsmax(szFirst))
  82.         }
  83.         else
  84.         {
  85.             szFirst = szNone
  86.         }
  87.        
  88.         if (is_user_alive(iSecondID) && !ze_is_user_zombie(iSecondID) && g_iEscapePoints[iSecondID] != 0)
  89.         {
  90.             get_user_name(iSecondID, szSecond, charsmax(szSecond))
  91.         }
  92.         else
  93.         {
  94.             szSecond = szNone
  95.         }
  96.        
  97.         if (is_user_alive(iThirdID) && !ze_is_user_zombie(iThirdID) && g_iEscapePoints[iThirdID] != 0)
  98.         {
  99.             get_user_name(iThirdID, szThird, charsmax(szThird))    
  100.         }
  101.         else
  102.         {
  103.             szThird = szNone
  104.         }
  105.        
  106.         set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.40, 0, 0.2, 0.4, 0.09, 0.09)
  107.         ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO", szFirst, szSecond, szThird)
  108.        
  109.         new iLeaderID; iLeaderID = g_iEscapeRank[RANK_FIRST]
  110.        
  111.         if (is_user_alive(iLeaderID) && !ze_is_user_zombie(iLeaderID) && g_iEscapePoints[iLeaderID] != 0)
  112.         {
  113.             new szLeader[32]
  114.             get_user_name(iLeaderID, szLeader, charsmax(szLeader))
  115.            
  116.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  117.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szLeader)
  118.         }
  119.         else
  120.         {
  121.             set_hudmessage(get_pcvar_num(Cvar_Rank_iRed), get_pcvar_num(Cvar_Rank_iGreen), get_pcvar_num(Cvar_Rank_iBlue), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
  122.             ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szNone)
  123.         }
  124.     }
  125. }

-And now to enable the two messages set the cvar to 3. So the cvar should be: ze_speed_rank_mode 3
Now the two modes will appear to you. But this not a good idea.
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#6

Post by johnnysins2000 » 7 years ago

Ok bro we will see how it looks if this is not an good idea i will just remove it
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#7

Post by Raheem » 7 years ago

Yes, As i think that 1 message of them is only enough if you need to show leader only ok. If you need to show leader + the other two ok use the master of survival not need the 2 at same time, This may cause much flood.

You can change the X,Y in the messages to make it Right or Left you are free.
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#8

Post by johnnysins2000 » 7 years ago

U know What Bro ?

I have Better Idea


In Some Maps I will show Master Of Survival Hud And In Some Escape Leader Hud


Or Maybe U could Do Something Like The One Who Is Escape Leader


Should Have a Hud above Health Class Escape Coins

Like This

[ESCAPE LEADER]
Health :1000 | Class :Human | Escape Coins :0
Nobody Is That Busy If They Make Time :roll:

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#9

Post by johnnysins2000 » 7 years ago

Bro This code is not working Which u gave me
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#10

Post by Raheem » 7 years ago

You mean to be like:

Health: 1000 | Class: Escape Leader | Escape Coins :0

Yeah this will be nice idea also i'll try to insert it in the next update.

The method i told you works but you need to change the X,Y only so it be like what you need. It give errors?
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#11

Post by johnnysins2000 » 7 years ago

No it does not give errors anyway leave this check out what i posted in the new ideas section ...
Nobody Is That Busy If They Make Time :roll:

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#12

Post by Spir0x » 6 years ago

[mention]Raheem[/mention] what is co ordinates ? X,Y i wanna do this to on my server
[Escape Leader]
[Master of Survival]
like this under it :)

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#13

Post by Raheem » 6 years ago

Spir0x wrote: 6 years ago @Raheem what is co ordinates ? X,Y i wanna do this to on my server
[Escape Leader]
[Master of Survival]
like this under it :)
You can't show them the two at same time... Also you can detect the X,Y bro yourself.
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#14

Post by johnnysins2000 » 6 years ago

Raheem wrote: 6 years ago
Spir0x wrote: 6 years ago @Raheem what is co ordinates ? X,Y i wanna do this to on my server
[Escape Leader]
[Master of Survival]
like this under it :)
You can't show them the two at same time... Also you can detect the X,Y bro yourself.

:P u made a cvar 3 to show both master of survival and escape leader !

I think i have an idea which will make both huds good ! Example

EL= ESCAPE LEADER !

[Master Of Survival]
[EL] Johnny
[1st] Player 1
[2nd] Player 2
[3rd] Player 3

OR second idea for hud style !

If the escape leader is on 3rd position or second position or first position then the hud should be like this

[MASTER OF SURVIVAL]
[1ST] Johnny -----> Escape Leader
[2ND] Player 1
[3RD] Player 2
Nobody Is That Busy If They Make Time :roll:

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#15

Post by Spir0x » 6 years ago

[mention]Raheem[/mention] What's this :) ?

Image

edit this photo -_- i cant use this bb code..

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#16

Post by johnnysins2000 » 6 years ago

Haahah that is Jack
Nobody Is That Busy If They Make Time :roll:

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#17

Post by Spir0x » 6 years ago

Yes so we can do it :) Raheem said we can't show both at same time.

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#18

Post by Raheem » 6 years ago

Spir0x wrote: 6 years ago Yes so we can do it :) Raheem said we can't show both at same time.
Anything can be done but i was say with the cvars exist for now you won't be able to show the two at same time. Also it's stuppid idea to show the two messages at same time for this ask jack he will tell you how to do...
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#19

Post by johnnysins2000 » 6 years ago

Raheem wrote: 6 years ago
Spir0x wrote: 6 years ago Yes so we can do it :) Raheem said we can't show both at same time.
Anything can be done but i was say with the cvars exist for now you won't be able to show the two at same time. Also it's stuppid idea to show the two messages at same time for this ask jack he will tell you how to do...
And what about the idea I posted :p that seems better of someone wants to huds to be together
Nobody Is That Busy If They Make Time :roll:

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#20

Post by Night Fury » 6 years ago

johnnysins2000 wrote: 6 years ago :P u made a cvar 3 to show both master of survival and escape leader !

I think i have an idea which will make both huds good ! Example

EL= ESCAPE LEADER !

[Master Of Survival]
[EL] Johnny
[1st] Player 1
[2nd] Player 2
[3rd] Player 3

OR second idea for hud style !

If the escape leader is on 3rd position or second position or first position then the hud should be like this

[MASTER OF SURVIVAL]
[1ST] Johnny -----> Escape Leader
[2ND] Player 1
[3RD] Player 2
Thank you for giving this idea.
It'll be done in my next server. :P :P :V :V
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 3 guests