Help job farmer (plantation)
#1

making a huge spam by creating objects ...
// I noticed that all objects created once
PHP код:
enum fInfo
{
    
OwnedPlantation,
    
ObjectOne,
    
ObjectTwo
}
new 
FarmInfoMAX_PLANTATIONS ][ fInfo ];
forward Farmer( );
public 
Farmer( )
{
    for( new 
0MAX_PLAYERSi++ )
    {
        new 
vehicle GetPlayerVehicleID(i);
        if( 
vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] )
        {
            for(new 
0MAX_PLANTATIONSx++)
            {
                new 
FloatXFloatYFloatZ;
                
GetPlayerPosiXY);
                   
FarmInfo][ ObjectOne ]= CreateObject872XYZ-10.000000.000000.00000 );
                   
FarmInfo][ OwnedPlantation ] = i;
               }
           }
    }
    return 
1;
}
forward LoadFarmer( );
public 
LoadFarmer( )
{
    for( new 
0MAX_PLAYERSi++ )
    {
        new 
vehicle GetPlayerVehicleID(i);
        if( 
vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] || vehicle == FarmerJob] )
        {
            for(new 
0MAX_PLANTATIONSx++)
            {
                   new 
FloatpXFloatpYFloatpZ;
                
GetObjectPosFarmInfo][ ObjectOne ], pXpYpZ );
                if( 
PlayerToPoint 10.0ipXpYpZ ) )
                {
                    
DestroyObjectFarmInfo][ ObjectOne ]);
                       new 
FloatXFloatYFloatZ;
                    
GetPlayerPosiXY);
                    
FarmInfo][ ObjectTwo ] = CreateObject2901XYZ0.000000.000000.00000 );
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Help job farmer (plantation) - by Edw - 03.05.2015, 15:19
Re: Help job farmer (plantation) - by Edw - 03.05.2015, 15:37
Re: Help job farmer (plantation) - by Mencent - 03.05.2015, 15:54
Re: Help job farmer (plantation) - by Edw - 03.05.2015, 16:01
Re: Help job farmer (plantation) - by Edw - 03.05.2015, 17:45
Re: Help job farmer (plantation) - by Edw - 04.05.2015, 08:56
Re: Help job farmer (plantation) - by sammp - 04.05.2015, 11:49
Re: Help job farmer (plantation) - by Edw - 04.05.2015, 15:15
Re: Help job farmer (plantation) - by DarkLouis - 04.05.2015, 16:47
Re: Help job farmer (plantation) - by Edw - 04.05.2015, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)