Quote:
Originally Posted by HKAnson
Shall you upload your SMA to us
|
PHP Code:
/*******************
*/
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <chatcolor>
#include <fun>
#include <engine>
new const Prefix[] = "[Road To Glory]"
public plugin_init()
{
register_plugin( "Pistol Fighter", "0.0.1", "R34Lx" )
RegisterHam(Ham_Spawn, "player", "Spawn", 1)
remove_entity_name( "game_text" );
remove_buyzone();
}
public remove_buyzone() {
new iEntity = -1;
while( ( iEntity = find_ent_by_class(iEntity, "func_buyzone") ) )
remove_entity( iEntity );
}
public Spawn(id)
{
if( is_user_alive(id) )
{
set_task(0.1, "ShowHud", id, _, _, "b");
{
switch( get_user_team(id) )
{
case 1:
{
strip_user_weapons( id )
give_item( id, "weapon_knife" );
give_item(id,"weapon_deagle");
set_user_health(id, 700)
client_print_color(id, Grey, "^4%s ^3Type /Health To See Your Health", Prefix);
client_print_color(id, Grey, "^4%s ^3You Are ^4Deagle Fighter ^3You have ^4 700 Health ^3And only ^4Deagle ^3and ^4Knife ^3to kill Enemy Team", Prefix);
}
case 2:
{
strip_user_weapons( id )
give_item( id, "weapon_knife" );
give_item(id,"weapon_usp");
set_user_health(id, 1000)
client_print_color(id, Grey, "^4%s ^3Type /Health To See Your Health", Prefix);
client_print_color(id, Grey, "^4%s ^3You Are ^4Usp Fighter ^3You have ^4 1000 Health ^3And only ^4Usp ^3and ^4Knife ^3to kill Enemy Team", Prefix);
}
}
}
}
}
public ShowHud(id)
{
new iHealth = get_user_health( id );
{
set_hudmessage(0, 255, 0, 0.01, 0.60, 0, 1.0, 0.9, 5.0, _, 1)
show_hudmessage(id, "You have %i HP", iHealth );
}
}
__________________