Raised This Month: $ Target: $400
 0% 

[Help] Change Map Entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 06-05-2013 , 03:03   Re: [Help] Change Map Entity
Reply With Quote #8

Ok. Now i got a new problem. The door exploses continously... (even round 1)
Here is my code. Is there anything wrong ?
PHP Code:
public plugin_precache()
{
    
register_forward(FM_Spawn"fw_Spawn")
}

public 
fw_Spawn(ent)
{
    if(!
pev_valid(ent))
        return 
FMRES_IGNORED

    
static ClassName[32], Target[64]
    
pev(entpev_classnameClassNamecharsmax(ClassName))
    
pev(entpev_targetTargetsizeof(Target))
    
    if(
equal(ClassName"trigger_once") && equal(Target"start"))
    {
        static 
NewEntityFloat:Origin[3], String[64]
        
NewEntity engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"trigger_multiple"))
        
        
fm_set_kvd(NewEntity"model""*101")
        
fm_set_kvd(NewEntity"target""start")
        
fm_set_kvd(NewEntity"style""32")
        
        
dllfunc(DLLFunc_SpawnNewEntity)
        
        
Big 1
        
        
return FMRES_SUPERCEDE
    
}
    
    return 
FMRES_IGNORED

dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
 



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:19.


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