Raised This Month: $ Target: $400
 0% 

[FIXED][ZP] ScreenShake when the round Ends


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
T0pARG
Junior Member
Join Date: Jun 2019
Old 06-29-2019 , 19:40   Re: [ZP] ScreenShake when the round Ends
Reply With Quote #1

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);
    } 
where i put the
PHP Code:
Sshake 
PHP Code:
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);
        
Sshake // Here?
    


Last edited by T0pARG; 06-29-2019 at 19:41.
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