Raised This Month: $ Target: $400
 0% 

[ZP] Bonus Box Screenfade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-15-2019 , 17:28   Re: [ZP] Bonus Box Screenfade
Reply With Quote #4

Code:
public fwdTouch(ent, id) { 
        
        if(!pev_valid(ent) || !is_user_alive(id)) return FMRES_IGNORED
        
        new classname[32]
        pev(ent, pev_classname, classname, charsmax(classname))
        
        if(equali(classname, "supplybox")) {
                
                emit_sound(id, CHAN_AUTO, g_sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
                ScreenFade(id, 3.0, 255, 255, 0, 0)
                engfunc(EngFunc_RemoveEntity, ent)
                remove_task(ent)
                
                if(zp_get_user_zombie(id))
                        zombie_item(id)
                else
                        human_item(id)
        }
        return FMRES_IGNORED
}

Last edited by LearninG; 09-15-2019 at 17:29.
LearninG 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 17:22.


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