Airdrop system
#1

I followed this tutorial on how to make a airdrop system but the airdrop goes through the ground i dont know why but could someone help me please.

PHP код:
CreateAirdrop(Float:xFloat:y)
{
    for(new 
iMAX_AIRDROPSi++)
    {
        if(! 
gAirdrop[i][AIRDROP_EXIST])
        {
            new 
Float:z;
            
MapAndreas_FindZ_For2DCoord(xyz);
            
+= (6.4653 1.0000);
            
gAirdrop[i][AIRDROP_OBJECT] = CreateDynamicObject(18849xy, (100.0), 0.00.00.0);
            
MoveDynamicObject(gAirdrop[i][AIRDROP_OBJECT], xyz5.0);
            
gAirdrop[i][AIRDROP_POS][0] = x;
            
gAirdrop[i][AIRDROP_POS][1] = y;
             
gAirdrop[i][AIRDROP_POS][2] = (- (6.4653 1.0000));
            
gAirdrop[i][AIRDROP_EXIST] = true;
            
gAirdrop[i][AIRDROP_EXPIRE] = -1;
            
gAirdrop[i][AIRDROP_PICKED] = true;
            return 
i;
        }
    }
    return -
1;

Reply
#2

Take a look at Map Andreas Plugin.
Reply
#3

Quote:
Originally Posted by Fratello
Посмотреть сообщение
Take a look at Map Andreas Plugin.
I use map andreas plugin but i don't know if i'm doing right
Reply
#4

Bump
Reply
#5

Uhm, What do you want to do by this system, exactly? Explain to me please.
Reply
#6

I believe this object don't have colision in badge. Use MoveDynamicObject and increase Z position.
Reply
#7

have you loaded mapandreas ? (MapAndreas_Init)
Reply
#8

Quote:
Originally Posted by JustNothing
Посмотреть сообщение
have you loaded mapandreas ? (MapAndreas_Init)
Man, MapAndreas is not problem. The problem is a offsets of object.
Reply
#9

Quote:
Originally Posted by RogerCosta
Посмотреть сообщение
Man, MapAndreas is not problem. The problem is a offsets of object.
https://i.imgur.com/yZRdSTq.png
the problem isn't in the object or mapandreas, post author did something wrong because I tried his provided code and it worked fine.
Reply
#10

Quote:
Originally Posted by JustNothing
Посмотреть сообщение
https://i.imgur.com/yZRdSTq.png
the problem isn't in the object or mapandreas, post author did something wrong because I tried his provided code and it worked fine.
I went to the same area in which u were standing and the airdrop didn't go under the map, but when i'm in the desert part of San Andreas map the airdrop goes through the sand samething happens when i'm in Los Santos.

Also i get this error in console
Код:
[19:09:50] MapAndreas: plugin could not init!
[19:09:50] MapAndreas: check files and make sure you have enough memory!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)