Raised This Month: $248 Target: $400
 62% 

Furien Base Edit Damage HeGrenade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Al3xandru27
Member
Join Date: Oct 2019
Old 07-31-2020 , 18:48   Furien Base Edit Damage HeGrenade
Reply With Quote #1

Can you make VIPs receive grenade damage?

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <fun>

#define PLUGIN "Furien Clasic"
#define VERSION "2.0"
#define AUTHOR "Aragon*"

#define DMG_HEGRENADE (1<<24)

#define FURIEN_GRAVITY        0.4
#define FURIEN_SPEED        750.0
#define TEAM_FURIEN 1
#define TEAM_ANTIFURIEN 2

#define TASKID_CANPLANT             10001
#define TASKID_C4COUNTDOWN         453 

#define VIP_GOLD_LEVEL        ADMIN_LEVEL_H
#define VIP_SILVER_LEVEL    ADMIN_LEVEL_G
#define FOUNDER_LEVEL        ADMIN_IMMUNITY

#if cellbits == 32
#define OFFSET_BZ 235
#else
#define OFFSET_BZ 268
#endif


//Settings
new bool:MakeVisible[33], Float:Wallorigin[33][3]

//Parachute
#define PARACHUTE_CLASS        "Parachute"
new ParaENT[33];

new 
cvar_gamedescriptionfurienspawnhpantifurienspawnhpremovebuyzonecvar_autojoin_classcvar_autojoin_teamcvar_aim_info
MSGID_SayTextMSGID_StatusIconMSGID_TextMsgMSGID_SendAudioMSGID_ShowMenuMSGID_VGUIMenuMSGID_HealthMSGID_ScreenFade,
bool:CanPlantC4_CountDownDelay;

public 
plugin_cfg() {
    
server_cmd("amx_cvar mp_playerid 2")
    
server_cmd("amx_cvar sv_maxspeed 999")
    
server_cmd("amx_cvar sv_restart 5")
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
cvar_gamedescription register_cvar("furien_gamename""Furien Romania")
    
antifurienspawnhp register_cvar("antifurien_spawnhp""135")
    
furienspawnhp register_cvar("furien_spawnhp""100")
    
cvar_autojoin_team register_cvar("furien_team""5")
    
cvar_autojoin_class register_cvar("furien_class""5")
    
cvar_aim_info register_cvar("furien_enable_aiminfo""0")
    
    
MSGID_SayText get_user_msgid("SayText")
    
MSGID_StatusIcon get_user_msgid("StatusIcon")
    
MSGID_TextMsg get_user_msgid("TextMsg")
    
MSGID_SendAudio get_user_msgid("SendAudio")
    
MSGID_ShowMenu get_user_msgid("ShowMenu")
    
MSGID_VGUIMenu get_user_msgid("VGUIMenu")
    
MSGID_ScreenFade get_user_msgid("ScreenFade")
    
    
register_clcmd("jointeam""CMD_BlockJoinTeam")
    
register_clcmd("jointeam 1""CMD_BlockJoinTeam")
    
register_clcmd("jointeam 2""CMD_BlockJoinTeam")
    
register_clcmd("jointeam 3""CMD_BlockJoinTeam")
    
register_clcmd("chooseteam""CMD_BlockChooseTeam")
    
register_clcmd("say /beneficii""CmdShowMotd")
    
register_clcmd("say /rs""CmdResetScore")
    
register_clcmd("say_team /rs""CmdResetScore")
    
register_clcmd("say /resetscore""CmdResetScore")
    
register_clcmd("say_team /resetscore""CmdResetScore")
    
    
RegisterHam(Ham_Spawn"player""Ham_Spawn_Post"1)
    
RegisterHam(Ham_Touch"weaponbox""HAM_Touch_Weapon")
    
RegisterHam(Ham_Touch"armoury_entity""HAM_Touch_Weapon")
    
RegisterHam(Ham_Touch"weapon_shield""HAM_Touch_Weapon")
    
RegisterHam(Ham_TakeDamage"player""SuperKnife_TakeDamage")
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_c4""C4_PrimaryAttack"); 
    
    
register_forward(FM_PlayerPreThink"Player_PreThink");
    
register_forward(FM_AddToFullPack"FWD_AddToFullPack"1);    
    
register_forward(FM_PlayerPreThink"FWD_ParachutePreThink");
    
register_forward(FM_GetGameDescription"FWD_GameDescription")    
    
    
register_event("CurWeapon""EVENT_CurWeapon""be""1=1")
    
register_event("DeathMsg""EVENT_Death""a");
    
register_event("SendAudio""EVENT_SwitchTeam""a""1=0""2=%!MRAD_ctwin");
    
register_event("HLTV""EVENT_NewRound""a""1=0""2=0");
    
register_event("TextMsg""EVENT_FireINTheHole""b""2&#Game_radio""4&#Fire_in_the_hole")
    
register_event("TextMsg""EVENT_FireINTheHole""b""3&#Game_radio""5&#Fire_in_the_hole")    
    
    
    
register_message(MSGID_StatusIcon"MSG_StatusIcon");
    
register_message(MSGID_TextMsg"MSG_TextMessage");
    
register_message(MSGID_ShowMenu"MSG_ShowMenu");
    
register_message(MSGID_VGUIMenu"MSG_VGUIMenu");
    
register_message(MSGID_SendAudio"MSG_SendAudio");
    
register_message(MSGID_Health"MSG_Health")
    
register_message(MSGID_ScreenFade"MSG_ScreenFade")
}


public 
plugin_precache() {
    
removebuyzone register_cvar("furien_removebuyzone""1")
    
    if(
get_pcvar_num(removebuyzone)) {
        
        
remove_entity_name("info_map_parameters");
        
remove_entity_name("func_buyzone");
        
        new 
Entity create_entity("info_map_parameters");
        
        
DispatchKeyValue(Entity"buying""3");
        
DispatchSpawn(Entity);
    }
}


public 
client_connect(id) {
    
client_cmd(id"cl_forwardspeed 999.0")
    
client_cmd(id"cl_sidespeed 999.0")
    
client_cmd(id"cl_backspeed 999.0")
}

public 
client_putinserver(id) {
    
client_cmd(id"cl_forwardspeed 999.0")
    
client_cmd(id"cl_sidespeed 999.0")
    
client_cmd(id"cl_backspeed 999.0")
}
    

public 
Ham_Spawn_Post(id) {
    if(
is_user_connected(id) && is_user_alive(id)) {
        
strip_user_weapons(id)
        switch(
get_user_team(id)) {
            case 
TEAM_FURIEN: {
                
fm_give_item(id"weapon_hegrenade")
                
fm_give_item(id"weapon_knife")
                
fm_give_item(id"weapon_flashbang")
                
set_user_footsteps(id1)
                
fm_set_user_health(idget_pcvar_num(furienspawnhp))
            }
            case 
TEAM_ANTIFURIEN: {
                
fm_give_item(id"weapon_flashbang")
                
fm_give_item(id"weapon_hegrenade")
                
fm_give_item(id"weapon_knife")
                
set_user_footsteps(id0)
                
fm_set_user_health(idget_pcvar_num(antifurienspawnhp))                    
            }
        }
    }
}

public 
EVENT_NewRound() {
    
CanPlant false;
    new 
Float:FloatTime get_cvar_num("mp_freezetime") + (get_cvar_num("mp_roundtime") * 60) - 60.0
    set_task
(FloatTime"TASK_CanPlant"TASKID_CANPLANT)
    
remove_task(TASKID_C4COUNTDOWN)
}

public 
EVENT_FireINTheHole() 
    return 
PLUGIN_HANDLED

public HAM_Touch_Weapon(entid) {
    if(
is_user_alive(id) && get_user_team(id) == TEAM_FURIEN && !(get_pdata_cbase(ent394) > 0))
        return 
HAM_SUPERCEDE
    
    
return HAM_IGNORED
}

public 
SuperKnife_TakeDamage(VictimInflictorAttackerFloat:DamageDamageType) {
    if(
is_user_connected(Attacker) && is_user_alive(Attacker) && is_user_connected(Victim)) {
        if(
get_user_flags(Victim) & VIP_GOLD_LEVEL) {
            if(
DamageType DMG_HEGRENADE)
                return 
HAM_SUPERCEDE
        
}
    }
    return 
HAM_IGNORED
}


public 
C4_PrimaryAttack(Ent) {
    if(!
CanPlant
        return 
HAM_SUPERCEDE
        
    
return HAM_IGNORED
}

public 
CmdResetScore(id) {
    if(
get_user_frags(id) == && get_user_deaths(id) == 0
        
ColorChat(id"!gScorul tau este deja!t 0-0!g !")
    else {
        for(new 
02i++) {
            
cs_set_user_deaths(id0);
            
set_user_frags(id0);
        }
        
ColorChat(id"!gTi-ai resetat scorul cu succes !")
    }
}

public 
CMD_BlockJoinTeam(id) {
    
console_print(id"*** Nu ai voie sa foloseti JoinTeam ! ***")
    return 
1;
}

public 
CMD_BlockChooseTeam(id) {
    
console_print(id"*** Nu ai voie sa foloseti ChooseTeam ! ***")
    return 
1;
}

public 
CmdShowMotd(id)
    
show_motd(id"addons/amxmodx/configs/beneficii.html")

/////////////////////////////////////////////////////////////////////////

public EVENT_CurWeapon(id) {
    if(
is_user_connected(id)) {
        new 
PlayerHealth;
        
PlayerHealth get_user_health(id)
        if(
PlayerHealth == 256)
            
fm_set_user_health(id255)
    }

}

public 
EVENT_Death() {
    static 
AttackerVictim;
    
Attacker read_data(1)
    
Victim read_data(2)
    if(
Victim == Attacker
        return 
1;
    
    if(
is_user_connected(Attacker)) {
        if(
get_user_flags(Attacker) & VIP_GOLD_LEVEL) {
            
cs_set_user_money(Attackercs_get_user_money(Attacker) + 6000)
            
fm_set_user_health(Attackerget_user_health(Attacker) + 60)
            
fm_set_user_armor(Attackerget_user_armor(Attacker) + 60)
        }
        else if(
get_user_flags(Attacker) & VIP_SILVER_LEVEL) {
            
cs_set_user_money(Attackercs_get_user_money(Attacker) + 3000)
            
fm_set_user_health(Attackerget_user_health(Attacker) + 30)
            
fm_set_user_armor(Attackerget_user_armor(Attacker) + 30)
        }
        else if(
get_user_flags(Attacker) & FOUNDER_LEVEL) {
            
cs_set_user_money(Attackercs_get_user_money(Attacker) + 7000)
            
fm_set_user_health(Attackerget_user_health(Attacker) + 70)
            
fm_set_user_armor(Attackerget_user_armor(Attacker) + 70)    
        }
        else {
            if(
get_user_team(Victim) == 2
                
cs_set_user_money(Attackercs_get_user_money(Attacker) + 1200)
            else if(
get_user_team(Victim) == 1)
                
cs_set_user_money(Attackercs_get_user_money(Attacker) + 3000)
        }
    }

    return 
1;
}

public 
MSG_StatusIcon(msg_idmsg_destid) {
    static 
Attrib 
    Attrib 
get_msg_arg_int(2)
    
    if(
Attrib == (1<<1))
        
set_msg_arg_int(2ARG_BYTE0)
    
    new 
Icon[8];
    
get_msg_arg_string(2Icon7);
    if(
get_pcvar_num(removebuyzone)) {
        static const 
BuyZone[] = "buyzone";
        
        if(
equal(IconBuyZone)) {
            
set_pdata_int(idOFFSET_BZget_pdata_int(idOFFSET_BZ5) & ~(<< 0), 5);
            
            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_CONTINUE;
}

public 
MSG_ShowMenu(msgiddestid) {
    if(!
Should_AutoJoin(id))
        return 
PLUGIN_CONTINUE
    
    
static team_select[] = "#Team_Select"
    
static menu_text_code[sizeof team_select]
    
get_msg_arg_string(4menu_text_codesizeof menu_text_code 1)
    if(!
equal(menu_text_codeteam_select))
        return 
PLUGIN_CONTINUE
    
    JoinTeam_Task
(idmsgid)
    
    return 
PLUGIN_HANDLED
}

public 
MSG_VGUIMenu(msgiddestid) {
    if(
get_msg_arg_int(1) != || !Should_AutoJoin(id))
        return 
PLUGIN_CONTINUE
    
    JoinTeam_Task
(idmsgid)
    
    return 
PLUGIN_HANDLED
}

public 
MSG_SendAudio() {
    static 
Sound[17]
    
get_msg_arg_string(2Soundsizeof Sound 1)
    
    if(
equal(Sound"terwin") || equal(Sound"ctwin") || equal(Sound"rounddraw") || equal(Sound"bombpl") || equal(Sound"bombdef"))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}

public 
MSG_Health(msgiddestid) {
    static 
Health;
    
Health get_msg_arg_int(1)
    if(
Health 255)
        
set_msg_arg_int(1ARG_BYTE255);
    else if(
Health == 256
        
set_msg_arg_int(1ARG_BYTEget_user_health(id) + 10)
}

public 
MSG_ScreenFade(msgiddestid) {
    if(
is_user_connected(id)) {
        if(
get_user_flags(id) & VIP_GOLD_LEVEL) {
            static 
data[4]
            
data[0] = get_msg_arg_int(4)
            
data[1] = get_msg_arg_int(5)
            
data[2] = get_msg_arg_int(6)
            
data[3] = get_msg_arg_int(7)
        
            if(
data[0] == 255 && data[1] == 255 && data[2] == 255 && data[3] > 199)
                return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE
}

bool:Should_AutoJoin(id) {
    return(
get_pcvar_num(cvar_autojoin_team) && !get_user_team(id) && !task_exists(id))
}

JoinTeam_Task(idmenu_msgid) {
    static 
param_menu_msgid[2]
    
param_menu_msgid[0] = menu_msgid
    
    set_task
(0.1"Force_JoinTeam"idparam_menu_msgidsizeof param_menu_msgid)
}

public 
Force_JoinTeam(menu_msgid[], id) {
    if(
get_user_team(id))
        return
    
    static 
team[2], class[2]
    
get_pcvar_string(cvar_autojoin_teamteamsizeof team 1)
    
get_pcvar_string(cvar_autojoin_class, class, sizeof class - 1)
    
Force_Team_Join(idmenu_msgid[0], team, class)
}

stock Force_Team_Join(idmenu_msgid,  team[] = "5", class[] = "0") {
    static 
jointeam[] = "jointeam"
    
if(class[0] == '0') {
        
engclient_cmd(idjointeamteam)
        return
    }
    
    static 
msg_blockjoinclass[] = "joinclass"
    
msg_block get_msg_block(menu_msgid)
    
set_msg_block(menu_msgidBLOCK_SET)
    
engclient_cmd(idjointeamteam)
    
engclient_cmd(idjoinclass, class)
    
set_msg_block(menu_msgidmsg_block)
}

public 
bomb_planted(planter) {
    
C4_CountDownDelay get_cvar_num("mp_c4timer") - 1
    TASK_C4_CountDown
();
    
set_hudmessage(random(255), random(255), random(255), -1.0, -1.013.13.0)
    
show_hudmessage(0"Furienii au plantat bomba!")
}

public 
EVENT_SwitchTeam() {
    new 
Players[32], PlayersNumid;
    
get_players(PlayersPlayersNum)
    if(
PlayersNum) {
        for(new 
iPlayersNumi++) {
            
id Players[i]
            
BeginDelay(id)
        }
    }
}

public 
BeginDelay(id) {
    if(
is_user_connected(id)) {
        switch(
id) {
            case 
1..7set_task(0.1"BeginTeamSwap"id)
            case 
8..15set_task(0.2"BeginTeamSwap"id)
            case 
16..23set_task(0.3"BeginTeamSwap"id)
            case 
24..32set_task(0.4"BeginTeamSwap"id)
        }
    }
}

public 
BeginTeamSwap(id) {
    if(
is_user_connected(id)) {
        switch(
get_user_team(id)) {
            case 
TEAM_FURIENcs_set_user_team(idCS_TEAM_CT)
            case 
TEAM_ANTIFURIENcs_set_user_team(idCS_TEAM_T)
        }
    }
}    

///////////////////////////////////////////////////////////////////////////////////////////////

public Player_PreThink(id) {
    if(
is_user_connected(id)) {
        if(
get_user_team(id) == TEAM_FURIEN) {
            if(
pev(idpev_gravity) > FURIEN_GRAVITY && pev(idpev_gravity) > 0.1)
                
set_pev(idpev_gravityFURIEN_GRAVITY)
        
            if(
pev(idpev_maxspeed) < FURIEN_SPEED && pev(idpev_maxspeed) > 1.0) {
                
set_pev(idpev_maxspeedFURIEN_SPEED)
                
set_user_footsteps(id1)
            }
        }
        if(
get_pcvar_num(cvar_aim_info)) {
            new 
TargetBody;
            
get_user_aiming(idTargetBody);
            if(
is_user_alive(id) && is_user_connected(Target) && is_user_alive(Target)) {
                new 
TargetTeamPlayerTeamTargetName[32], Message[128], TargetHealthTargetArmorREDGREENBLUE;
                
TargetTeam get_user_team(Target)
                
PlayerTeam get_user_team(id)
                
get_user_name(TargetTargetName31)
                
TargetHealth get_user_health(Target)
                
TargetArmor get_user_armor(Target)
                if(
PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                    
formatex(Messagesizeof(Message)-1"%s^nHP: %i | AP: %i"TargetNameTargetHealthTargetArmor)
                    
RED 20
                    GREEN 
200
                    BLUE 
50
                
}
                else if(
PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_FURIEN) {
                    
formatex(Messagesizeof(Message)-1"%s^nHP: %i | AP: %i"TargetNameTargetHealthTargetArmor)
                    
RED 200
                    GREEN 
20 
                    BLUE 
20 
                
}
                else if(
PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                    
formatex(Messagesizeof(Message)-1"%s^nHP: %i | AP: %i"TargetNameTargetHealthTargetArmor)
                    
RED 200
                    GREEN 
20 
                    BLUE 
20 
                
}
                else if(
PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_FURIEN)
                    return 
                
set_hudmessage(REDGREENBLUE, -1.0, -1.000.00.10.00.0, -1);
                
show_hudmessage(id"%s"Message)
            }
        }
    }
}

public 
FWD_AddToFullPack(eseenthosthost_flagsplayerp_set) {
    if(
is_user_connected(ent) && is_user_connected(host) && is_user_alive(ent)) {
        if(
is_user_alive(host) && get_user_team(ent) == && get_user_team(host) == 
        
|| !is_user_alive(host) && get_user_team(ent) == && pev(hostpev_iuser2) == ent
        
|| get_user_team(ent) == && pev(entpev_maxspeed) <= 1.0) {
            
set_es(esES_RenderFxkRenderFxNone);
            
set_es(esES_RenderModekRenderTransTexture);
            
set_es(esES_RenderAmt255);
        }
        else if(
get_user_team(ent) == 1) {
            
set_es(esES_RenderFxkRenderFxNone);
            
set_es(esES_RenderModekRenderTransTexture);
            static 
Float:Origin[3]
            
pev(entpev_originOrigin)
            
            if(
get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && fm_get_speed(ent) <= || get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && Origin[0] == Wallorigin[ent][0] && Origin[1] == Wallorigin[ent][1] && Origin[2] == Wallorigin[ent][2])
                
set_es(esES_RenderAmt0);
            else
                
set_es(esES_RenderAmt255);
        }
    }
}

public 
FWD_ParachutePreThink(id) {
    if(
is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
        new 
Float:FallSpeed = -50.0;
        new 
Float:Frame;
        
        new 
Button pev(idpev_button);
        new 
OldButton pev(idpev_oldbuttons);
        new 
Flags pev(idpev_flags);
        
        if(
ParaENT[id] > &&(Flags FL_ONGROUND)) {
            
            if(
pev(ParaENT[id],pev_sequence) != 2) {
                
set_pev(ParaENT[id], pev_sequence2);
                
set_pev(ParaENT[id], pev_gaitsequence1);
                
set_pev(ParaENT[id], pev_frame0.0);
                
set_pev(ParaENT[id], pev_fuser10.0);
                
set_pev(ParaENT[id], pev_animtime0.0);
                return;
            }
            
            
pev(ParaENT[id],pev_fuser1Frame);
            
Frame += 2.0;
            
set_pev(ParaENT[id],pev_fuser1,Frame);
            
set_pev(ParaENT[id],pev_frame,Frame);
            
            if(
Frame 254.0) {
                
engfunc(EngFunc_RemoveEntityParaENT[id]);
                
ParaENT[id] = 0;
            }
            else {
                
engfunc(EngFunc_RemoveEntityParaENT[id]);
                
ParaENT[id] = 0;
            }
            return;
        }
        
        if(
Button IN_USE) {
            new 
Float:Velocity[3];
            
pev(idpev_velocityVelocity);
            
            if(
Velocity[2] < 0.0) {
                if(
ParaENT[id] <= 0) {
                    
ParaENT[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
                    
                    if(
ParaENT[id] > 0) {
                        
set_pev(ParaENT[id],pev_classnamePARACHUTE_CLASS);
                        
set_pev(ParaENT[id], pev_aimentid);
                        
set_pev(ParaENT[id], pev_ownerid);
                        
set_pev(ParaENT[id], pev_movetypeMOVETYPE_FLY);
                        
set_pev(ParaENT[id], pev_sequence0);
                        
set_pev(ParaENT[id], pev_gaitsequence1);
                        
set_pev(ParaENT[id], pev_frame0.0);
                        
set_pev(ParaENT[id], pev_fuser10.0);
                    }
                }
                if(
ParaENT[id] > 0) {
                    
set_pev(idpev_sequence3);
                    
set_pev(idpev_gaitsequence1);
                    
set_pev(idpev_frame1.0);
                    
set_pev(idpev_framerate1.0);
                    
                    
Velocity[2] = (Velocity[2] + 40.0 FallSpeed) ? Velocity[2] + 40.0 FallSpeed;
                    
set_pev(idpev_velocityVelocity);
                    
                    if(
pev(ParaENT[id],pev_sequence) == 0) {
                        
pev(ParaENT[id],pev_fuser1Frame);
                        
Frame += 1.0;
                        
set_pev(ParaENT[id],pev_fuser1,Frame);
                        
set_pev(ParaENT[id],pev_frame,Frame);
                        
                        if(
Frame 100.0) {
                            
set_pev(ParaENT[id], pev_animtime0.0);
                            
set_pev(ParaENT[id], pev_framerate0.4);
                            
set_pev(ParaENT[id], pev_sequence1);
                            
set_pev(ParaENT[id], pev_gaitsequence1);
                            
set_pev(ParaENT[id], pev_frame0.0);
                            
set_pev(ParaENT[id], pev_fuser10.0);
                        }
                    }
                }
            }
            
            else if(
ParaENT[id] > 0) {
                
engfunc(EngFunc_RemoveEntityParaENT[id]);
                
ParaENT[id] = 0;
            }
        }
        
        else if((
OldButton IN_USE) && ParaENT[id] > 0) {
            
engfunc(EngFunc_RemoveEntityParaENT[id]);
            
ParaENT[id] = 0;
        }
    }
}

public 
FWD_GameDescription() { 
    static 
GameName[32]
    
get_pcvar_string(cvar_gamedescriptionGameName31)
    
    
forward_return(FMV_STRINGGameName)
    
    return 
FMRES_SUPERCEDE
}
   
    public 
TASK_CanPlant() {
CanPlant true;
set_hudmessage(random(255), random(255), random(255), -1.0, -1.013.13.0)
show_hudmessage(0"")
}

public 
TASK_C4_CountDown() {
    new 
RedGreenBlue
    
if(C4_CountDownDelay 10)
        
Red 0Green 255Blue 0;
    else if(
C4_CountDownDelay 5)
        
Red 255Green 200Blue 0;
    else if(
C4_CountDownDelay <= 5)
        
Red 255Green 0Blue 0;
    
    if(
C4_CountDownDelay) {
        new 
Message[256];
        
formatex(Message,sizeof(Message)-1,"----------^n| C4: %d |^n----------"C4_CountDownDelay);

        
set_hudmessage(RedGreenBlue, -1.00.7806.01.0)
        
show_hudmessage(0"%s"Message)
        
set_task(1.0"TASK_C4_CountDown"TASKID_C4COUNTDOWN);
        
C4_CountDownDelay--;
    }
    else if(!
C4_CountDownDelay)
        
C4_CountDownDelay 0;
}

stock ColorChat(const id, const input[], any:...) {
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4");
    
replace_all(msg190"!y""^1");
    
replace_all(msg190"!t""^3");
    
    if(
idplayers[0] = id;
    else 
get_players(playerscount"ch"); {
        for(new 
0counti++) {
            if(
is_user_connected(players[i])) {
                
message_begin(MSG_ONE_UNRELIABLEMSGID_SayText_players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    } 

Al3xandru27 is offline
Reply


Thread Tools
Display Modes

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 01:00.


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