Airdrop system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Airdrop system (
/showthread.php?tid=648267)
Airdrop system -
1fret - 18.01.2018
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:x, Float:y)
{
for(new i; i < MAX_AIRDROPS; i++)
{
if(! gAirdrop[i][AIRDROP_EXIST])
{
new Float:z;
MapAndreas_FindZ_For2DCoord(x, y, z);
z += (6.4653 + 1.0000);
gAirdrop[i][AIRDROP_OBJECT] = CreateDynamicObject(18849, x, y, (z + 100.0), 0.0, 0.0, 0.0);
MoveDynamicObject(gAirdrop[i][AIRDROP_OBJECT], x, y, z, 5.0);
gAirdrop[i][AIRDROP_POS][0] = x;
gAirdrop[i][AIRDROP_POS][1] = y;
gAirdrop[i][AIRDROP_POS][2] = (z - (6.4653 + 1.0000));
gAirdrop[i][AIRDROP_EXIST] = true;
gAirdrop[i][AIRDROP_EXPIRE] = -1;
gAirdrop[i][AIRDROP_PICKED] = true;
return i;
}
}
return -1;
}
Re: Airdrop system -
Fratello - 18.01.2018
Take a look at Map Andreas Plugin.
Re: Airdrop system -
1fret - 18.01.2018
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
Re: Airdrop system -
1fret - 19.01.2018
Bump
Re: Airdrop system -
JasonRiggs - 19.01.2018
Uhm, What do you want to do by this system, exactly? Explain to me please.
Re: Airdrop system -
RogerCosta - 19.01.2018
I believe this object don't have colision in badge. Use MoveDynamicObject and increase Z position.
Re: Airdrop system -
JustNothing - 19.01.2018
have you loaded mapandreas ? (MapAndreas_Init)
Re: Airdrop system -
RogerCosta - 19.01.2018
Quote:
Originally Posted by JustNothing
have you loaded mapandreas ? (MapAndreas_Init)
|
Man, MapAndreas is not problem. The problem is a offsets of object.
Re: Airdrop system -
JustNothing - 19.01.2018
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.
Re: Airdrop system -
1fret - 19.01.2018
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!