Raised This Month: $ Target: $400
 0% 

[FIXED][ZP] ScreenShake when the round Ends


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-29-2019 , 12:09   Re: [ZP] ScreenShake when the round Ends
Reply With Quote #1

what exactly did you try
__________________
<VeCo> is offline
T0pARG
Junior Member
Join Date: Jun 2019
Old 06-29-2019 , 14:12   Re: [ZP] ScreenShake when the round Ends
Reply With Quote #2

PHP Code:
public Sshake(id)
{
    
message_begin(MSG_ONE_UNRELIABLEg_msgScreenShake_id)
    
write_short(UNIT_SECOND*10// amplitude
    
write_short(UNIT_SECOND*6// duration
    
write_short(UNIT_SECOND*10// frequency
    
message_end()

I want to add this, but idk where, I was did it here

PHP Code:
// Show HUD notice, play win sound, update team scores...
    
static sound[64]
    if (!
fnGetZombies())
    {
        
        
// Play win sound and increase score, unless game commencing
        
ArrayGetString(sound_win_humansrandom_num(0ArraySize(sound_win_humans) - 1), soundcharsmax(sound))
        
PlaySound(sound)
        if (!
g_gamecommencingg_scorehumans++
                
        
// Round end forward
        
ExecuteForward(g_fwRoundEndg_fwDummyResultZP_TEAM_HUMAN);
    }
    else if (!
fnGetHumans())
    {
        
        
// Play win sound and increase score, unless game commencing
        
ArrayGetString(sound_win_zombiesrandom_num(0ArraySize(sound_win_zombies) - 1), soundcharsmax(sound))
        
PlaySound(sound)
        if (!
g_gamecommencingg_scorezombies++
        
        
// Round end forward
        
ExecuteForward(g_fwRoundEndg_fwDummyResultZP_TEAM_ZOMBIE);
    }
    else
    {
        
// No one wins
        
set_hudmessage(02000HUD_EVENT_XHUD_EVENT_Y00.03.02.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"WIN_NO_ONE")
        
        
// Play win sound
        
ArrayGetString(sound_win_no_onerandom_num(0ArraySize(sound_win_no_one) - 1), soundcharsmax(sound))
        
PlaySound(sound)
        
        
// Round end forward
        
ExecuteForward(g_fwRoundEndg_fwDummyResultZP_TEAM_NO_ONE);
    } 
But the game doesn't works and closes it

Last edited by T0pARG; 06-29-2019 at 14:13.
T0pARG is offline
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 17:27.


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