Raised This Month: $51 Target: $400
 12% 

Aim Info for [ZP 5.0] [Help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MeliMeli
Senior Member
Join Date: Apr 2022
Location: Brazil
Old 04-25-2022 , 09:02   Aim Info for [ZP 5.0] [Help]
Reply With Quote #1

Hello, there is a function in a zp 4.3 that there is an "Aim Info" to see the health of the player of the other team, the armor and the ammopacks he has just by aiming at him. I would like to convert this to ZP 5.0 as pretty much zp 5.0 has been completely rewritten and I have no idea where to start. Can someone help me?:



// Aim Info
public showStatus(id)
{
if(!is_user_bot(id) && is_user_connected(id))
{
new name[32], pid = read_data(2)

get_user_name(pid, name, 31)
new color1 = 0, color2 = 0

new team1 = g_zombie[id], team2 = g_zombie[pid]

if (team2 == 1)
color1 = 255
else
color2 = 255

if (team1 == team2)
{
set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, g_status_sync, "%s - %d HP / %d Armor / %d Ammopacks", name, get_user_health(pid), get_user_armor(pid), g_ammopacks[pid])
}
else
{
set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, g_status_sync, "%s", name)
}
}
}

public hideStatus(id)
{
ClearSyncHud(id, g_status_sync)
}

EDIT: Fixed.

Last edited by MeliMeli; 04-26-2022 at 15:36.
MeliMeli 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:58.


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