Raised This Month: $ Target: $400
 0% 

Doesnt change origin of func_*


Post New Thread Reply   
 
Thread Tools Display Modes
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
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-17-2009 , 07:20   Re: Doesnt change origin of func_*
Reply With Quote #2

your origins are empty
__________________
Dr.G is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 07:49   Re: Doesnt change origin of func_*
Reply With Quote #3

Why?O_o
__________________
xPaw is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-17-2009 , 08:15   Re: Doesnt change origin of func_*
Reply With Quote #4

well you gotta set a new origin right? Where is the new origin(s)?
__________________
Dr.G is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 08:30   Re: Doesnt change origin of func_*
Reply With Quote #5

Watch into fwdHamSpawn_Illusionary
__________________
xPaw is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-17-2009 , 08:58   Re: Doesnt change origin of func_*
Reply With Quote #6

yea you get the the origins and put them into vOrigin1 and 2. after that you set them to them to vOrigin1 and 2. now where is the new origins?
__________________
Dr.G is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 09:11   Re: Doesnt change origin of func_*
Reply With Quote #7

in global variables...
__________________
xPaw is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-17-2009 , 09:18   Re: Doesnt change origin of func_*
Reply With Quote #8

do a print of what you think is the new origin and the old/original origin then.
__________________
Dr.G is offline
Old 05-17-2009, 09:24
Hunter-Digital
This message has been deleted by Hunter-Digital. Reason: :-"
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 09:38   Re: Doesnt change origin of func_*
Reply With Quote #10

Code:
L 05/17/2009 - 16:37:29: [lol.amxx] spawned! *21 at origin: 0.0 0.0 0.0
L 05/17/2009 - 16:37:29: [lol.amxx] spawned! *25 at origin: 0.0 0.0 0.0
__________________
xPaw 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 01:29.


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