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-30-2019 , 05:21   Re: [ZP] ScreenShake when the round Ends
Reply With Quote #1

Use Sshake() to call the function.

if (!fnGetZombies()) is when humans win
else if (!fnGetHumans()) is when zombies win
else is when no one wins

If you want it to be called in all cases, put it under the else closing bracket, or before static sound[64], doesn't matter.. But yes, otherwise that's correct.
__________________
<VeCo> is offline
T0pARG
Junior Member
Join Date: Jun 2019
Old 06-30-2019 , 15:03   Re: [ZP] ScreenShake when the round Ends
Reply With Quote #2

I did it like you said me, but an error appears me "WriteDest_Param: not a client"
Help me please

PHP Code:
// Show HUD notice, play win sound, update team scores...
    
static sound[64]
    
Sshake // Idk where i put this!
    
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);
    } 

Last edited by T0pARG; 06-30-2019 at 15:04.
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