Raised This Month: $ Target: $400
 0% 

[ZP] Bonus Box Screenfade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
strangeguy
Senior Member
Join Date: Mar 2019
Old 09-16-2019 , 10:59   Re: [ZP] Bonus Box Screenfade
Reply With Quote #5

Quote:
Originally Posted by LearninG View Post
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
}
When I do this good I have this message in compiler "cstrike\addons\scripting\z.sma(119) : error 017: undefined symbol "ScreenFade"
strangeguy 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