ferriswheel fs and streamer
#1

Hi all. I wanted to add ferriswheel filterscript to my server. it works perfectly. Now, i decided to make it work with streamer plugin. Thats the part, where i changed the code. As result - wheel isn't moving. anymore. whats wrong with it?
PHP код:
public RotateWheel()
{
    
UpdateWheelTarget();
    
    new 
Float:fModifyWheelZPos 0.0;
    if(
gWheelTransAlternatefModifyWheelZPos 0.05;
    
    
MoveDynamicObjectgFerrisWheelgFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2]+fModifyWheelZPos,
                
FERRIS_WHEEL_SPEED0.0gCurrentTargetYAngleFERRIS_WHEEL_Z_ANGLE );
}
//-------------------------------------------------
public OnFilterScriptInit()
{
    
gFerrisWheel CreateDynamicObjectFERRIS_WHEEL_IDgFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
                                   
0.00.0FERRIS_WHEEL_Z_ANGLE, -1,-1,-1FERRIS_DRAW_DISTANCE );
    
gFerrisBase CreateDynamicObjectFERRIS_BASE_IDgFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
                                   
0.00.0FERRIS_WHEEL_Z_ANGLE, -1,-1,-1FERRIS_DRAW_DISTANCE );
                                   
    new 
x=0;
    while(
!= NUM_FERRIS_CAGES) {
        
gFerrisCages[x] = CreateDynamicObjectFERRIS_CAGE_IDgFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
                                   
0.00.0FERRIS_WHEEL_Z_ANGLE, -1,-1,-1FERRIS_DRAW_DISTANCE );
                                   
        
AttachDynamicObjectToObjectgFerrisCages[x], gFerrisWheel,
                              
gFerrisCageOffsets[x][0],
                              
gFerrisCageOffsets[x][1],
                                
gFerrisCageOffsets[x][2],
                              
0.00.0FERRIS_WHEEL_Z_ANGLE+180.0);
                    
        
x++;
    }
    
    
SetTimer("RotateWheel",3*1000,0);
    return 
1;
}
//-------------------------------------------------
public OnFilterScriptExit()
{
    new 
x=0;
    
    
DestroyDynamicObject(gFerrisWheel);
    
DestroyDynamicObject(gFerrisBase);
    
    
x=0;
    while(
!= NUM_FERRIS_CAGES) {
        
DestroyDynamicObject(gFerrisCages[x]);
        
x++;
    }
    return 
1;

Reply


Messages In This Thread
ferriswheel fs and streamer - by valerastar - 28.11.2016, 19:39
Re: ferriswheel fs and streamer - by valerastar - 29.11.2016, 20:12
Re: ferriswheel fs and streamer - by valerastar - 30.11.2016, 12:47
Re: ferriswheel fs and streamer - by Micko123 - 30.11.2016, 14:55
Re: ferriswheel fs and streamer - by valerastar - 01.12.2016, 15:49
Re: ferriswheel fs and streamer - by valerastar - 17.12.2016, 10:08
Re: ferriswheel fs and streamer - by valerastar - 28.07.2017, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)