Veteran Member
Join Date: Jul 2006
Location: France (95)
|
10-19-2012
, 00:56
Re: [INC] Director Hud Message
|
#139
|
Quote:
Originally Posted by aganfitra
this is my code,, can you help me to make large size??
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Show Clip & Ammo"
#define VERSION "1.0"
#define AUTHOR "Forcas aka. aganfitra"
new clip
new ammo
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "showclip", "b", "1=1")
register_event("AmmoX", "showammo", "b", "1<15")
register_event("CurWeapon", "Event_CurWeapon", "b", "1=1")
}
public showclip(id)
{
clip = read_data(3)
}
public showammo(id)
{
if(get_user_weapon( id, clip, ammo ))
{
ammo = read_data(2)
}
}
public Event_CurWeapon(id)
{
switch(get_user_weapon( id, clip, ammo ))
{
case CSW_KNIFE: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1.0,_,_, 4) && show_hudmessage(0, "", clip, ammo)
case CSW_HEGRENADE: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1.0,_,_, 4) && show_hudmessage(0, "", clip, ammo)
case CSW_SMOKEGRENADE: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1.0,_,_, 4) && show_hudmessage(0, "", clip, ammo)
case CSW_FLASHBANG: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1.0,_,_, 4) && show_hudmessage(0, "", clip, ammo)
case CSW_GLOCK18: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1000.0,_,_, 4) && show_hudmessage(0, "%3d/%3d", clip, ammo)
case CSW_SG552: set_hudmessage(255, 255, 255, -1.0, 0.15, _,_, 1000.0,_,_, 4) && show_hudmessage(0, "%3d/%3d", clip, ammo)
}
}
|
I think you shoud give up coding, no offense, but it is clear that you don't understand anything on basic stuff.
__________________
|
|