Raised This Month: $ Target: $400
 0% 

Aim-Info by SEMO.Pa3x


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
SEMO.Pa3x
Junior Member
Join Date: Oct 2016
Location: Iraq/Najaf
Old 10-12-2016 , 04:00   Aim-Info by SEMO.Pa3x
Reply With Quote #1

Aim Info
Name, Health, Armor, Country


| Description:
this plugin allows you to view information (friends / enemies)
when you put the c
ursor on the head.
[ Health: %d | Armor: %d | Country: %s ]
CT = Blue , T = Red .

| Screenshot:



PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <geoip>

#define PLUGIN "Aim-Info"
#define VERSION "1.0"
#define AUTHOR "SEMO.Pa3x"

new g_aimstttg_aimstct

public plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)
g_aimsttt CreateHudSyncObj()
g_aimstct CreateHudSyncObj()
register_event("StatusValue""event_show_status""be""1=2""2!0")
register_event("StatusValue""event_hide_status""be""1=1""2=0")



public 
event_show_status(id)
{
if (!
is_user_alive(id))
return; 
new 
szName[32]
new 
iData read_data(2);
get_user_name(iDataszNamecharsmax(szName))
static 
sz_ip[16],sz_country[20]
get_user_ip(iData,sz_ip,charsmax(sz_ip),1)
geoip_country(sz_ip,sz_country,charsmax(sz_country))
if(
cs_get_user_team(iData) == CS_TEAM_T)
{
set_hudmessage(2552020, -1.00.6010.01.00.20.2, -1)
ShowSyncHudMsg(idg_aimsttt,"%s ^n[ Health: %d | Armor: %d | Country: %s ]"szNameget_user_health(iData), get_user_armor(iData), sz_country);
}
if(
cs_get_user_team(iData) == CS_TEAM_CT)
{
set_hudmessage(2020255, -1.00.6010.01.00.20.2, -1)    
ShowSyncHudMsg(idg_aimstct,"%s ^n[ Health: %d | Armor: %d | Country: %s ]"szNameget_user_health(iData), get_user_armor(iData), sz_country);
}          
}

public 
event_hide_status(id)
{
ClearSyncHud(idg_aimsttt)
ClearSyncHud(idg_aimstct)

Attached Files
File Type: sma Get Plugin or Get Source (Aim-Info.sma - 927 views - 1.4 KB)
SEMO.Pa3x is offline
Send a message via Skype™ to SEMO.Pa3x
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-12-2016 , 16:33   Re: Aim-Info by SEMO.Pa3x
Reply With Quote #2

When I said use ctrl+shift+tab I didn't mean literally remove all indentation.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-14-2016 , 14:15   Re: Aim-Info by SEMO.Pa3x
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=115266
That's much more complete.
__________________
HamletEagle 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 20:45.


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