Raised This Month: $ Target: $400
 0% 

[SOLVED] Party Vale Plugin - PARTY HARD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ripers2011
Member
Join Date: Aug 2013
Old 08-29-2013 , 03:33   [SOLVED] Party Vale Plugin - PARTY HARD
Reply With Quote #1

Hello friends of AM,

Well my problem is this, this plugin did an Argentine called Kiske, he had before a command to block the plugin and put the command only 1 time per map, but I want it to be placed whenever you want ...

This ready all what I can do when I want, but the color screens do not work more: z, the "fn_ChangeScreens" does not work when I go back to place ... I could help with that?, Everything works fine, but the screen colors, do not ever have the effect again, even if you did "sv_restart 1"

PLUGIN:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <dhudmessage>

#define PLUGIN_NAME        "Torneo VIP 2c2 - FINAL"
#define PLUGIN_VERSION    "v1.0.0"
#define PLUGIN_AUTHOR    "Kiske"

const UNIT_SECOND = (<< 12);

new 
g_message_hud;
new 
g_count;
new 
g_count_screens;
new 
g_count_final;
new 
g_finish;
new 
g_maxplayers;

new 
g_message_screenshake;
new 
g_message_screenfade;

public 
plugin_precache()
{
    
precache_sound("t_2c2/tcs_one.wav");
    
precache_sound("t_2c2/tcs_two.wav");
    
precache_sound("t_2c2/tcs_three.wav");
    
precache_sound("t_2c2/tcs_four.wav");
    
precache_sound("t_2c2/tcs_five.wav");
    
    
precache_sound("weapons/c4_explode1.wav");
    
    
precache_generic("sound/t_2c2/px2.mp3");
}

public 
plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
register_concmd("amx_partyhard""concmd_RockFinal");
    
    
g_message_screenshake get_user_msgid("ScreenShake");
    
g_message_screenfade get_user_msgid("ScreenFade");
    
    
g_message_hud CreateHudSyncObj();
    
    
g_maxplayers get_maxplayers();
}

public 
concmd_RockFinal(idlevelcid)
{
    if(!
cmd_access(idADMIN_LEVEL_Acid1))
        return 
PLUGIN_HANDLED;
    
    
g_count 10;
    
set_task(2.0"fn_Vale");
    
    new 
i;
    for(
1<= g_maxplayers; ++i)
    {
        if(!
is_user_connected(i))
            continue;
        
        
cs_set_user_money(i0);
        
        if(!
is_user_alive(i))
            continue;
        
        
strip_user_weapons(i);
    }
    
    return 
PLUGIN_HANDLED;
}

public 
fn_Vale()
{
    new 
sMsg[64];
    
    if(
g_count 5)
    {
        
formatex(sMsgcharsmax(sMsg), "PREPARAAAADOS PARA EL PARTY!!! EN --> | %d | <-- SEGUNDOS!!!"g_count);
        
server_cmd("hns_status 0")
    }
    else
    {
        new 
sSound[64];
        
        switch(
g_count)
        {
            case 
5:
            {
                
formatex(sSoundcharsmax(sSound), "t_2c2/tcs_five.wav");
                
                new 
i;
                for(
1<= g_maxplayers; ++i)
                {
                    if(!
is_user_connected(i))
                        continue;
                    
                    
message_begin(MSG_ONE_UNRELIABLEg_message_screenshake_i);
                    
write_short(UNIT_SECOND 14);
                    
write_short(UNIT_SECOND 9);
                    
write_short(UNIT_SECOND 14);
                    
message_end();
                }
                
                for(
1<= g_maxplayers; ++i)
                {
                    if(!
is_user_connected(i))
                        continue;
                    
                    
ClearSyncHud(ig_message_hud);
                }
                
                
set_lights("i");
            }
            case 
4:
            {
                
formatex(sSoundcharsmax(sSound), "t_2c2/tcs_four.wav");
                
set_lights("g");
            }
            case 
3:
            {
                
formatex(sSoundcharsmax(sSound), "t_2c2/tcs_three.wav");
                
set_lights("e");
            }
            case 
2:
            {
                
formatex(sSoundcharsmax(sSound), "t_2c2/tcs_two.wav");
                
set_lights("c");
            }
            case 
1:
            {
                
formatex(sSoundcharsmax(sSound), "t_2c2/tcs_one.wav");
                
set_lights("a");
            }
            case 
0:
            {    
                
g_count 1;
                
                
set_task(3.0"fn_PlayMusic");
                
                return;
            }
        }
        
        
client_cmd(0"spk ^"%s^""sSound);
        
        
set_dhudmessage(2552550, -1.00.300.00.30.30.3);
        
show_dhudmessage(0"%d"g_count);
    }
    
    if(
g_count 5)
    {
        
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
        
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    }
    
    --
g_count;
    
    
set_task(1.0"fn_Vale");
}

public 
fn_PlayMusic()
{
    if(
g_count == 5)
    {
        ++
g_count;
        
        
set_task(0.3"fn_PlayMusic");
        
        return;
    }
    
    new 
sSound[64];
    
    switch(
g_count)
    {
        case 
1formatex(sSoundcharsmax(sSound), "t_2c2/tcs_one.wav");
        case 
2formatex(sSoundcharsmax(sSound), "t_2c2/tcs_two.wav");
        case 
3formatex(sSoundcharsmax(sSound), "t_2c2/tcs_three.wav");
        case 
4formatex(sSoundcharsmax(sSound), "t_2c2/tcs_four.wav");
        case 
6:
        {
            
client_cmd(0"MP3Volume 2.0");
            
client_cmd(0"mp3 play ^"sound/t_2c2/px2.mp3^"");
            
set_task(2.0"mensajes_hud");
            
            
            new 
i;
            for(
1<= g_maxplayers; ++i)
            {
                if(!
is_user_connected(i))
                    continue;
                
                
message_begin(MSG_ONE_UNRELIABLEg_message_screenshake_i);
                
write_short(UNIT_SECOND 28);
                
write_short(UNIT_SECOND 18);
                
write_short(UNIT_SECOND 28);
                
message_end();
            }
            
            
g_count 1;
            
g_count_final 1;
            
            
set_task(0.1"fn_ChangeRender");
            
set_task(5.0"fn_ChangeNumber");
            
set_task(15.0"fn_ChangeScreens");
            
set_task(30.1"fn_Finish");
            
            return;
        }
    }
    
    
client_cmd(0"spk ^"%s^""sSound);
    
    ++
g_count;
    
    
set_task(0.3"fn_PlayMusic");
}

public 
mensajes_hud()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "TE GUSTA LA DISCO ? EL WEBEO ? JAJA :X");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(3.5"mensajes_hud2");
}

public 
mensajes_hud2()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "ONGAMERS TE TRAE LA DIVERSIOOOOON !!!!  YEAHHH MADAFACKAAAA");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(5.0"mensajes_hud3");
}

public 
mensajes_hud3()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "ESCONDIDAS BLACK ALIEN   EL SERVIDOR #1 DE CHILEE  FUCK SHIT !!!");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(4.5"mensajes_hud4");
}

public 
mensajes_hud4()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "TE DIVIERTES ? JAJAJAJA  -  LO QUE FUMAN MARIHUUUUAAAANAAAAAA !!!");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(3.0"mensajes_hud5");
}

public 
mensajes_hud5()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "TUURRUUUU TRUUU TRURURRURU RUTRURURURURURU RUTRTURTURUTUR !!!!");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(3.0"mensajes_hud6");
}

public 
mensajes_hud6()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "ESCONDIDAS BLACK ALIEN !!!   SERVIDORES ONGAMERS MADAFACKA!!!!");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
    
set_task(3.0"mensajes_hud7");
}

public 
mensajes_hud7()
{
    new 
sMsg[64]
    
    
formatex(sMsgcharsmax(sMsg), "SERVIDOR UNICO CHILENO !  ONGAMERS | ESCONDIDAS BLACK ALIEN MOD !");
    
set_hudmessage(2552550, -1.00.300.03.02.01.0, -1);
    
ShowSyncHudMsg(0g_message_hud"%s"sMsg);
}

public 
fn_ChangeRender()
{
    if(
g_count == 60 || g_finish)
        return;

    static 
i;
    static 
Float:vecOrigin[3];
    
    for(
1<= g_maxplayers; ++i)
    {
        if((
g_count 2) == 0)
        {
            if(!
is_user_connected(i))
                continue;
            
            
message_begin(MSG_ONE_UNRELIABLEg_message_screenshake_i);
            
write_short(UNIT_SECOND 9);
            
write_short(UNIT_SECOND 6);
            
write_short(UNIT_SECOND 9);
            
message_end();
            
            if(!
is_user_alive(i))
                continue;
            
            
entity_get_vector(iEV_VEC_originvecOrigin);
            
            
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYvecOrigin0);
            
write_byte(TE_DLIGHT);
            
engfunc(EngFunc_WriteCoordvecOrigin[0]);
            
engfunc(EngFunc_WriteCoordvecOrigin[1]);
            
engfunc(EngFunc_WriteCoordvecOrigin[2]);
            
write_byte(40);
            
write_byte(random_num(50250));
            
write_byte(random_num(50250));
            
write_byte(random_num(50250));
            
write_byte(50);
            
write_byte(10);
            
message_end();
        }
        
        if(!
is_user_alive(i))
            continue;
        
        
set_user_rendering(ikRenderFxGlowShellrandom_num(150250), random_num(150250), random_num(150250), kRenderNormal25);
    }
    
    ++
g_count;
    
    
set_task(0.5"fn_ChangeRender");
}

public 
fn_ChangeScreens()
{
    if(
g_count_screens == 75 || g_finish)
        return;
    
    static 
i;
    if((
g_count_screens 15) == 0)
    {
        for(
1<= g_maxplayers; ++i)
        {
            if(!
is_user_connected(i))
                continue;
            
            
message_begin(MSG_ONE_UNRELIABLEg_message_screenshake_i);
            
write_short(UNIT_SECOND 28);
            
write_short(UNIT_SECOND 18);
            
write_short(UNIT_SECOND 28);
            
message_end();
        }
    }
    
    for(
1<= g_maxplayers; ++i)
    {
        if(!
is_user_connected(i))
            continue;
        
        
message_begin(MSG_ONE_UNRELIABLEg_message_screenfade_i)
        
write_short(UNIT_SECOND*4);
        
write_short(UNIT_SECOND*4);
        
write_short(0x0000);
        
write_byte(random_num(100250));
        
write_byte(random_num(100250));
        
write_byte(random_num(100250));
        
write_byte(200);
        
message_end();
    }
    
    ++
g_count_screens;
    
    
set_task(0.2"fn_ChangeScreens");
}

public 
fn_Finish()
{
    
g_finish 1;
    
    
client_cmd(0"mp3 stop; stopsound");
    
    
client_cmd(0"spk weapons/c4_explode1.wav");
    
client_cmd(0"spk weapons/c4_explode1.wav");
    
    
set_lights("");
    
    new 
i;
    for(
1<= g_maxplayers; ++i)
    {
        if(!
is_user_connected(i))
            continue;
        
        
message_begin(MSG_ONE_UNRELIABLEg_message_screenfade_i)
        
write_short(UNIT_SECOND*4);
        
write_short(UNIT_SECOND*4);
        
write_short(0x0000);
        
write_byte(255);
        
write_byte(255);
        
write_byte(25);
        
write_byte(255);
        
message_end();
        
        
set_user_rendering(i);
    }
    
    
set_task(0.3"fn_R");
    
set_task(2.0"fn_Restart3");
}

public 
fn_R()
{
    
server_cmd("hns_status 1")
    
server_cmd("sv_restart 1")
}

public 
fn_Restart3()
{
    
client_print(0print_chat"V4L3 V4L3 V4L3 V4L3 V4L3 V4L3 V4L3 V4L3");
    
client_print(0print_chat"VaLe VaLe VaLe VaLe VaLe VaLe VaLe VaLe");
    
client_print(0print_chat"vAlE vAlE vAlE vAlE vAlE vAlE vAlE vAlE");
    
client_print(0print_chat"VALE VALE VALE VALE VALE VALE VALE VALE");
}

public 
fn_ChangeNumber()
{
    if(
g_count_final == 6)
        return;
    
    new 
sSound[64];
    
    switch(
g_count_final)
    {
        case 
1formatex(sSoundcharsmax(sSound), "t_2c2/tcs_five.wav");
        case 
2formatex(sSoundcharsmax(sSound), "t_2c2/tcs_four.wav");
        case 
3formatex(sSoundcharsmax(sSound), "t_2c2/tcs_three.wav");
        case 
4formatex(sSoundcharsmax(sSound), "t_2c2/tcs_two.wav");
        case 
5formatex(sSoundcharsmax(sSound), "t_2c2/tcs_one.wav");
    }
    
    
client_cmd(0"spk ^"%s^""sSound);
    
    ++
g_count_final;
    
    
set_task(5.0"fn_ChangeNumber");


Thank you!
jejejejeje



[SOLVED] by xLeoNNN ;D
__________________


Escondidas Black alien [78%][AVANZANDO]
Basebuilder + Niveles y mas [36%][DETENIDO!]

WEB ONGAMERS

Last edited by ripers2011; 08-29-2013 at 15:00.
ripers2011 is offline
 



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 18:45.


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