Raised This Month: $ Target: $400
 0% 

Can EngFunc_PlaybackEvent cause lags/cpu usage?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-11-2009 , 04:58   Can EngFunc_PlaybackEvent cause lags/cpu usage?
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define FEV_GLOBAL (1<<2)

public plugin_init() {
    
register_plugin"Decal Remover""1.0""xPaw" );
    
    
set_task5.0"removeDecals"_,_,_"b" );
}

public 
removeDecals() {    // original stock from fakemeta_util
    
static eventindex_decal_reset;
    if ( !
eventindex_decal_reset )
        
eventindex_decal_reset engfunc(EngFunc_PrecacheEvent1"events/decal_reset.sc");
    
    
engfunc(EngFunc_PlaybackEventFEV_GLOBAL0eventindex_decal_reset0.0Float:{0.00.00.0}, Float:{0.00.00.0}, 0.00.00000);

i have this code, i've done it for my csdm, i'm asking will it cause lags or something because of task?
__________________
xPaw 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 08:50.


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