Approved Target Information v1.1

Plug-ins compatibility with Zombie Escape 1.x only!


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

Target Information v1.1

#1

Post by Raheem » 7 years ago

Target Information

Description:
  • Simple plugin that will add hud message that will appear when you aim at your friend. If it's your friend it will appear his health and level and Escape Coins. If he is enemy it will appear his name only.
Installation & Instructions:
  • Simply install it like any plugin not need explanations.
Screenshots:
  • ImageImage
  • ImageImage
Downloads:

Last edited by z0h1r-LK 1 year ago, edited 1 time in total.
Reason: Updated to version 1.1
He who fails to plan is planning to fail

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#2

Post by czirimbolo » 5 years ago


Can you fix this?

  1. L 09/08/2018 - 19:47:34: [AMXX] Displaying debug trace (plugin "ze_target_info.amxx", version "1.0")
  2. L 09/08/2018 - 19:47:34: [AMXX] Run time error 10: native error (native "ze_get_escape_coins")
  3. L 09/08/2018 - 19:47:34: [AMXX]    [0] ze_target_info.sma::show_status (line 27)
Image

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

#3

Post by Raheem » 5 years ago

  1. #include <zombie_escape>
  2. #include <ze_levels>
  3.  
  4. public plugin_init()
  5. {
  6.     register_plugin("[ZE] Target Info", "1.0", "Raheem")
  7.    
  8.     // Events
  9.     register_event("StatusValue","show_status","be","1=2","2!0")
  10. }
  11.  
  12. public show_status(id)
  13. {
  14.     new szName[32]
  15.     new iReadID = read_data(2)
  16.     get_user_name(iReadID, szName, 31)
  17.    
  18.     if (!is_user_connected(iReadID) || !is_user_connected(id))
  19.         return
  20.    
  21.     if ((get_member(iReadID, m_iTeam) == TEAM_CT) && (get_member(id, m_iTeam) == TEAM_CT))
  22.     {
  23.         set_hudmessage(0, 0, 255, -1.0, 0.60, 1, 0.01, 5.0, 0.01, 0.01, 4)
  24.         show_hudmessage(id, "%s -- Health: %d / Level: %d / Escape Coins: %d", szName, get_user_health(iReadID), ze_get_user_level(iReadID), ze_get_escape_coins(iReadID))
  25.     }
  26.    
  27.     if ((get_member(iReadID, m_iTeam) == TEAM_TERRORIST) && (get_member(id, m_iTeam) == TEAM_TERRORIST))
  28.     {
  29.         set_hudmessage(255, 0, 0, -1.0, 0.60, 1, 0.01, 5.0, 0.01, 0.01, 4)
  30.         show_hudmessage(id, "%s -- Health: %d / Level: %d / Escape Coins: %d", szName, get_user_health(iReadID), ze_get_user_level(iReadID), ze_get_escape_coins(iReadID))
  31.     }
  32.    
  33.     if ((get_member(iReadID, m_iTeam) == TEAM_TERRORIST) && (get_member(id, m_iTeam) == TEAM_CT))
  34.     {
  35.         set_hudmessage(255, 0, 0, -1.0, 0.60, 1, 0.01, 5.0, 0.01, 0.01, 4)
  36.         show_hudmessage(id, "%s", szName)
  37.     }
  38.    
  39.     if ((get_member(iReadID, m_iTeam) == TEAM_CT) && (get_member(id, m_iTeam) == TEAM_TERRORIST))
  40.     {
  41.         set_hudmessage(0, 0, 255, -1.0, 0.60, 1, 0.01, 5.0, 0.01, 0.01, 4)
  42.         show_hudmessage(id, "%s", szName)
  43.     }
  44. }
He who fails to plan is planning to fail

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 476
Joined: 5 years ago
Location: The Red City ❤
Contact:

#4

Post by z0h1r-LK » 1 year ago

Updated v1.1
  • Fixed Bugs.
  • Optimized Codes.

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 0 guests