Raised This Month: $ Target: $400
 0% 

Removing Map Objectives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-31-2013 , 10:00   Re: Removing Map Objectives
Reply With Quote #2

try this, it works with my plugin
Code:
Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "oxygen" new g_HostageEnt new const g_sRemoveEntities[][] = {     "func_bomb_target",     "info_bomb_target",     "hostage_entity",     "monster_scientist",     "func_hostage_rescue",     "info_hostage_rescue",     "info_vip_start",     "func_vip_safetyzone",     "func_escapezone",     "armoury_entity" } new const MAX_REMOVED_ENTITIES = sizeof(g_sRemoveEntities); public plugin_precache() {     register_forward(FM_Spawn, "fwdSpawn", 0)         new allocHostageEntity = engfunc(EngFunc_AllocString, "hostage_entity")     do     {         g_HostageEnt = engfunc(EngFunc_CreateNamedEntity, allocHostageEntity)     }     while( !pev_valid(g_HostageEnt) )         engfunc(EngFunc_SetOrigin, g_HostageEnt, Float:{0.0, 0.0, -55000.0})     engfunc(EngFunc_SetSize, g_HostageEnt, Float:{-1.0, -1.0, -1.0}, Float:{1.0, 1.0, 1.0})     dllfunc(DLLFunc_Spawn, g_HostageEnt) } public fwdSpawn(ent) {     if( !pev_valid(ent) || ent == g_HostageEnt )     {         return FMRES_IGNORED;     }         new sClass[32];     pev(ent, pev_classname, sClass, 31);         for( new i = 0; i < MAX_REMOVED_ENTITIES; i++ )     {         if( equal(sClass, g_sRemoveEntities[i]) )         {             engfunc(EngFunc_RemoveEntity, ent);             return FMRES_SUPERCEDE;         }     }         return FMRES_IGNORED; }
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
 



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 16:15.


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