Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Vậy trong AMXX có hàm nào lấy phần nguyên ko mấy đại ka.
Trong AutoIt có cái Int() sẽ lấy phần nguyên của 1 số. 1.7 -> 1, 1.99 ->1, 1.2 ->1
floatround(Float:num, floatround_floor)
new bool:my_bool[33][3]



#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Hud Health Bar Fit"
#define VERSION "1.1"
#define AUTHOR "SnoW"
#define BAR_SIZE 2
new gBar[ ] = "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";
new gMaxHealth[ 33 ];
public plugin_init( )
{
register_plugin( PLUGIN, VERSION, AUTHOR );
register_event( "Health", "eHealth", "be" );
RegisterHam( Ham_Spawn, "player", "ham_Spawn", 1 );
}
public eHealth( id )
{
static health, max_health;
health = read_data( 1 );
max_health = gMaxHealth[ id ];
if( health > max_health )
gMaxHealth[ id ] = max_health = health;
show_bar( id, health * 100 / max_health );
}
public ham_Spawn( id )
{
if( is_user_alive( id ) )
{
gMaxHealth[ id ] = get_user_health( id );
show_bar( id, 100 );
return HAM_HANDLED;
}
return HAM_IGNORED;
}
show_bar( id, health_percent )
{
set_hudmessage( 255 - health_percent * 2, health_percent * 2, 0, 0.1, 0.9, 0, 6.0, 999.9, 0.0, 0.0, 3 );
show_hudmessage( id, "%s", gBar[ min( 99, 100 - health_percent / BAR_SIZE ) ] );
}


Valentine qua rồi. Nhưng vẫn có quà để tặng . Author of two plugin is Dias
1. DRAGON CANNON (Resource + SourceCode)
[video=youtube;qzlWSITbPEY]http://www.youtube.com/watch?feature=player_embedded&v=qzlWSITbPEY[/URL][/video]
Name: Dragon Cannon
Version: 1.0
Author: Dias
- Information: A new Powerful weapon from CSO called "Dragon Cannon". Can shoot multi "fire" at a time.
- Cvar:
zp_dcannon_ammo // Default Ammo | Default: 20
zp_firedelay // Fire Delay | Default: 3.5
zp_dmgrandom_start // Random Damage Start from x | Default: 300.0
zp_dmgrandom_end // Random Damage End after x | Default: 500.0
--> In video i use: 300.0 and 2000.0
Download: http://dl.dropbox.com/u/13064809/Share Files/dragon_cannon.zip
[dragon_cannon.zip]
- models
- sound
- sprites
- source code (sma)
2. QuadBarrel (Resource + SourceCode)
[video=youtube;3tZXtqTL5UA]http://www.youtube.com/watch?feature=player_embedded&v=3tZXtqTL5UA[/URL][/video]
Name: Quad Barrel
Type: Weapon
For: Zombie Plague | Team Human
Version: 1.0
Author: Dias
Helper Something about shotgun code: Redplane
1. Information:
- This is a cso hero's weapon. And now is appear in Zombie Plague. Code By Me
2. Usage:
- Press "Left Mouse" to shot one ammo
- Press "Right Mouse" to shot all ammo
3. Cvar:
- zp_qbarrel_default_clip // Default Give and Reloaded Clip | Default: 4
- zp_qbarrel_delay_attack // Delay Time between attack | Default: 0.35 (You shouldn't change this)
- zp_qbarrel_reload_time // Reload Time | Default: 3.0 (You shouldn't change this)
// Note: This is the real damage. Not x of + oh - oh /
- zp_qbarrel_randomdmg_start // Random Damage start from x | Default: 400.0
- zp_qbarrel_randomdmg_end // Random Damage End after x | Default: 600.0
4. Credits:
- Dias | Made Plugin
- RedPlane | Help about Shotgun Code
4. Download:
-> http://dl.dropbox.com/u/13064809/Share Files/zp_extra_quad-barrel.zip