Raised This Month: $ Target: $400
 0% 

Removing Map Objectives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-31-2013 , 09:31   Removing Map Objectives
Reply With Quote #1

Hello everybody,

I've got this code here :

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>

#define PLUGIN    "Remove Map Objectives"
#define AUTHOR    ""
#define VERSION    "1.0.0"

new const g_szObjectives[][] = 
{
    
"func_bomb_target",
    
"info_bomb_target",
    
"hostage_entity",
    
"monster_scientist",
    
"func_hostage_rescue",
    
"info_hostage_rescue",
    
"info_vip_start",
    
"func_vip_safetyzone",
    
"func_escapezone"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forward(FM_Spawn,"fw_SpawnPost",1)
}

public 
fw_SpawnPostiEntity )
{
    new 
szClassname32 ];
    
peviEntitypev_classnameszClassnamecharsmaxszClassname ) );
    
    for( new 
0sizeof g_szObjectivesi++ )
    {
        if( 
equaliszClassnameg_szObjectives] ) )
        {
            
remove_entityiEntity );
            break;
        }
    }

It should remove the Map objectives, but it doesn't work. Any idea why?
__________________
Kia is offline
 


Thread Tools
Display Modes

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