Raised This Month: $ Target: $400
 0% 

Bug HUD Jailbreak Count day


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fatalerror23
Member
Join Date: May 2011
Old 08-28-2012 , 19:09   Bug HUD Jailbreak Count day
Reply With Quote #1

the hub is increasing the IN server here in below this one print with SMA plugin!


someone could help me I will be grateful

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

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>

#define PLUGIN "JailBreak: Dni"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

new iRound, iSyncHud
new iFd
new szSound[] = "sound/EvL.G_JB/Sirene_NEW.wav"

new i

new iDays_FreeDay[] = {
        1,
        11,
        21,
        31
}

new rounds

public plugin_init() 
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_logevent("logevent_roundEnd", 2, "1=Round_End")
        
        register_event("HLTV", "event_newRound", "a", "1=0", "2=0")
        
        RegisterHam(Ham_Killed, "player", "ham_playerDeath", 1)
    
    iSyncHud = CreateHudSyncObj()
}

public clcmd_FreeDay(id)
{
        if(cs_get_user_team(id) != CS_TEAM_CT)
                return 1
        
        new menu = menu_create("Escolha o player para ser freeday", "FreeDayPlayerMenu_Handler")
        
        static szName[40]
        for(new i = 1, maxplayers = get_maxplayers(); i <= maxplayers; i++)
        {
                if(!is_user_connected(i))
                        continue
                
                if(cs_get_user_team(i) != CS_TEAM_T || !is_user_alive(i))
                        continue
                
                get_user_name(id, szName, charsmax(szName))
                menu_additem(menu, szName, "")
        }
        menu_display(id, menu)
        
        
        return 1
}
public FreeDayPlayerMenu_Handler(id, menu, item)
{
        menu_destroy(menu)
        
        new target = ++item
        
        if(!is_user_connected(target) || cs_get_user_team(target) != CS_TEAM_T || !is_user_alive(target))
                return 1
        
        set_user_rendering(target, kRenderFxGlowShell, 255, 215, 0, kRenderNormal, 20)
        
        return 1
}

public round_end()
{
    rounds ++
}

public restart_roundsnum() 
{
    rounds = 0 
}

public client_disconnect(id)
        remove_task(id)

public logevent_roundEnd()
        remove_task(0)

public event_newRound()
{          
        iRound++
        
        for(i = 0; i < sizeof(iDays_FreeDay); i++)
        {
                if(iRound <= iDays_FreeDay[i])
                {
                        iFd = (iDays_FreeDay[i] - iRound)
                        
                        if(iRound == iDays_FreeDay[i])
                        {
                                set_task(0.1, "hudmsg", 'f', _, _, "b")
                                client_cmd(0, "spk %s", szSound)
                                set_task(30.0, "OpenCells" )
                                break
                        }
                        else
                        {
                                set_task(0.1, "hudmsg", 'd', _, _, "b")
                                break
                        }
                        
                        break
                }
        }
}

public ham_playerDeath(vitima)
        remove_task(vitima)

public hudmsg(arg)
{
        set_hudmessage(0, 255, 0, 0.48, 0.12, 0, 6.0, 3.0)
        
        if(arg == 'f')
                ShowSyncHudMsg(0, iSyncHud, "[ EvOLUTION GAMES ] HOJE E FREEDAY ^nGUARDAS PARA FORA DO PRESIDIO AGORA !!!")
        
        else if(arg == 'd')
                ShowSyncHudMsg(0, iSyncHud, "[ EvOLUTION GAMES ] HOJE E DIA %i^nFALTAM %i DIAS PARA FREEDAY !!!", iRound, iFd)
}

public hudarrrrrg(arg)
{
        set_hudmessage(0, 255, 0, 0.850, 0.25, 2, 0.0, 3.0)
        
        if(arg == 'f')
                ShowSyncHudMsg(0, iSyncHud, "[ EvOLUTION GAMES ] HOJE E FREEDAY ^nGUARDAS PARA FORA DO PRESIDIO AGORA !!!")
        
        else if(arg == 'd')
                ShowSyncHudMsg(0, iSyncHud, "[ EvOLUTION GAMES ] HOJE E DIA %i^nFALTAM %i DIAS PARA FREEDAY !!!", iRound, iFd)
}
fatalerror23 is offline
Old 08-29-2012, 19:02
.BaTmaN
This message has been deleted by YamiKaitou. Reason: English Only
Reply



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 05:46.


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