Aim Info for [ZP 5.0] [Help]
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. |
| All times are GMT -4. The time now is 21:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.