Raised This Month: $12 Target: $400
 3% 

[REQ] Terrorist Radar Postition (CT)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DreamWorks
Senior Member
Join Date: Mar 2012
Old 03-28-2012 , 18:36   [REQ] Terrorist Radar Postition (CT)
Reply With Quote #1

Hello, please everytime i want to compile this plugin, i have this error:

Quote:
Copie de radar.sma(3 : error 017: undefined symbol "find_entity"
Copie de radar.sma(41) : error 017: undefined symbol "find_entity"
Copie de radar.sma(59) : error 017: undefined symbol "find_entity"
Copie de radar.sma(62) : error 017: undefined symbol "find_entity"
Copie de radar.sma(70) : error 017: undefined symbol "find_entity"
PHP Code:
#include <amxmodx>
#include <engine>


public plugin_init()
{
    
register_plugin("Terrorists on Radar""0.1""KRoTaL")
    
register_event("DeathMsg","death_event","a")
    
register_event("TextMsg""game_restart""a""1=4""2&#Game_C""2&#Game_w")
    
register_event("SendAudio""round_end""a""2=%!MRAD_terwin""2=%!MRAD_ctwin""2=%!MRAD_rounddraw")
}

public 
plugin_precache()
{
    
precache_model("models/scientist.mdl")
    
precache_model("models/hostage.mdl")
    
precache_sound("hostage/hos1.wav")
    
precache_sound("hostage/hos2.wav")
    
precache_sound("hostage/hos3.wav")
    
precache_sound("hostage/hos4.wav")
    
precache_sound("hostage/hos5.wav")
    
precache_sound("hostage/hos6.wav")
    
precache_sound("hostage/hos7.wav")
}

public 
round_end()
{
    
set_task(4.0"endround"2635784212)
}

public 
game_restart()
{
    
set_task(0.5"endround"7642154241)
}

public 
endround()
{
    new 
ent find_entity(-1"hostage_entity")
    while(
ent 0)
    {
        new 
tempent find_entity(ent"hostage_entity")
        if(
entity_get_edict(entEV_ENT_aiment) > 0)
        {
            
remove_entity(ent)
        }
        
ent tempent
    
}
    new 
players[32], inum
    get_players
(playersinum"a""TERRORIST")
    for(new 
inum i++)
    {
        
createhos(players[i])
    }
}

public 
death_event()
{
    new 
id read_data(2)
    if(
get_user_team(id) == 1)
    {
        new 
hostage_id find_entity(-1"hostage_entity")
        while(
hostage_id 0)
        {
            if(
entity_get_edict(hostage_idEV_ENT_aiment) == id)
            {
                
remove_entity(hostage_id)
                return 
PLUGIN_CONTINUE
            
}
            
hostage_id find_entity(hostage_id"hostage_entity")
        }        
    }

    return 
PLUGIN_CONTINUE
}

public 
createhos(id)
{
    new 
hostage create_entity("hostage_entity")
    if (
hostage 0)
    {
        
DispatchKeyValue(hostage"classname""hostage_entity")
        
DispatchKeyValue(hostage"origin""8192 8192 8192")
        
//entity_set_int(hostage, EV_INT_effects, 128)
        
DispatchSpawn(hostage)
        
entity_set_int(hostageEV_INT_solid0)
        
entity_set_int(hostageEV_INT_movetypeMOVETYPE_FOLLOW)
        
entity_set_edict(hostageEV_ENT_aimentid)
        return 
hostage
    
}
    return 
0


Last edited by DreamWorks; 03-28-2012 at 19:05.
DreamWorks is offline
CreePs
Member
Join Date: Mar 2011
Old 03-29-2012 , 04:30   Re: [REQ] Terrorist Radar Postition (CT)
Reply With Quote #2

Code:
find_entity
-->

Code:
find_ent_by_class
__________________
My Plugin's:
CreePs is offline
Reply



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 07:50.


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