Raised This Month: $ Target: $400
 0% 

replace status to hud message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eseqiiel
Junior Member
Join Date: Jan 2016
Old 01-06-2016 , 17:55   replace status to hud message
Reply With Quote #1

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public msg_StatusValue(iMsgID, iDest, iClient)
{
if(!get_pcvar_num(g_pcvar_status_style))
return PLUGIN_CONTINUE

if(get_pcvar_num(g_pcvar_status_style) == 2 && !is_user_admin(iClient))
return PLUGIN_HANDLED

static value, status[2]

value = get_msg_arg_int(2)

if(value && get_msg_arg_int(1) == 1)
{
status[0] = iClient
status[1] = value
show_status(status)
}
return PLUGIN_HANDLED
}




public show_status(status[])
{
const Float:x = -1.0
const Float:y = 0.55

const r = 180
const g = 180
const b = 255

new id
new body
new name[32]
new	model[32]

get_user_name(status[1], name, 31)
get_user_info(status[1], "model", model, 31)

get_user_aiming(status[0], id, body)

if(id != status[1])
return

set_hudmessage(r, g, b, x, y, 0, 0.0, 0.8, 0.1, 0.5, -1)
ShowSyncHudMsg(status[0], g_HudSyncObj, "%s^n(%s)", name, model)
set_task(1.5 , "show_status" , status[0] + 4090 , status , 3)
}
Error: Undefined symbol "g_pcvar_status_style" on line 13
Error: Undefined symbol "g_pcvar_status_style" on line 16
Error: Undefined symbol "g_HudSyncObj" on line 58

Last edited by eseqiiel; 01-06-2016 at 18:04. Reason: ingles
eseqiiel is offline
 



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 09:34.


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