Raised This Month: $ Target: $400
 0% 

Create PLant Possible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 03-22-2009 , 17:01   Create PLant Possible?
Reply With Quote #1

Is it possible to create planting point via Amxx? I tryed this:
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))

public plugin_precache() 
{
       new 
iEnt fm_create_entity("func_bomb_target"
       
SetKeyValue(iEnt"model""*1""func_bomb_target")
       
SetKeyValue(iEnt"origin","145 -418 53""func_bomb_target")
       
dllfunc(DLLFunc_SpawniEnt
}  

SetKeyValue(iEnt, const szKey[], const szValue[], const szClassName[])  
{  
    
set_kvd(0KV_ClassNameszClassName)  
    
set_kvd(0KV_KeyNameszKey)  
    
set_kvd(0KV_ValueszValue)  
    
set_kvd(0KV_fHandled0)  
    
dllfunc(DLLFunc_KeyValueiEnt0)  
}

/*
"origin" "145 -418 53"
"model" "*1"
"classname" "func_bomb_target"
*/ 
but it doesn't work.. Any suggestions?

Last edited by Empowers; 03-22-2009 at 17:09.
Empowers is offline
Send a message via ICQ to Empowers
 



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


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