Raised This Month: $ Target: $400
 0% 

Doesnt change origin of func_*


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 07:12   Doesnt change origin of func_*
Reply With Quote #1

I am tryed to change 2 func_illusionary by their places, but failed

PHP Code:
L 05/17/2009 14:08:52: [change.amxxspawned! *21
L 05
/17/2009 14:08:52: [change.amxxspawned! *25
L 05
/17/2009 14:08:52: [change.amxxfound! *21
L 05
/17/2009 14:08:52: [change.amxxfound! *25 
in logs prints what both spawned, and in func_illusionary they found, but the origins doesnt changes :\

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

new Float:vOrigin1], Float:vOrigin2];

public 
plugin_init( ) {
    
register_plugin"lololol!""1.0""xPaw" );
    
    new 
iEntity = -1;
    while( ( 
iEntity find_ent_by_modeliEntity"func_illusionary""*21" ) ) != ) {
        
log_amx"found! *21" );
        
set_peviEntitypev_originvOrigin2 );
    }
    
    
iEntity = -1;
    while( ( 
iEntity find_ent_by_modeliEntity"func_illusionary""*25" ) ) != ) {
        
log_amx"found! *25" );
        
set_peviEntitypev_originvOrigin1 );
    }
}

public 
plugin_precache( )
    
RegisterHamHam_Spawn"func_illusionary""fwdHamSpawn_Illusionary" );

public 
fwdHamSpawn_IllusionaryiEntity ) {
    new 
szModel];
    
peviEntitypev_modelszModel);
    
    if( 
equalszModel"*21" ) ) {
        
log_amx"spawned! *21" );
        
peviEntitypev_originvOrigin1 );
    }
    else if( 
equalszModel"*25" ) ) {
        
log_amx"spawned! *25" );
        
peviEntitypev_originvOrigin2 );
    }

__________________
xPaw is offline
 



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 01:29.


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