Helo with object to car spawn - 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: Helo with object to car spawn (
/showthread.php?tid=615062)
Helo with object to car spawn -
itachi - 16.08.2016
Help mi with object to car after spawn..
help :
In public gamemode..
Код:
new infjedna = AddVehicle(411,-1576.2742,673.5869,6.8782,181.4119,0,83); // INFERNUS SPAWN
INFA[infjedna] = CreateObject(19797,0,0,0,0,0,0,80 ); // Object
AttachObjectToVehicle(INFA[infjedna], infjedna, -0.004999, 1.184999, 0.279999, -50.250007, 0.000000, -180.900085 );
ERROR :
Код:
If i connect to server,and spawn infernus nowhere is
Re: Helo with object to car spawn -
Sh4dow04 - 28.08.2016
Add this on the top of your gamemode (Under includes and defines)
Код:
new infjedna;
new INFA;
Now go to OnGameModeInit callback.
Код:
public OnGameModeInit()
{
infjedna = AddStaticVehicle(411,-1576.2742,673.5869,6.8782,181.4119,0,83);
INFA = CreateObject(19797,0,0,0,0,0,0,80);
AttachObjectToVehicle(INFA, infjedna, -0.004999, 1.184999, 0.279999, -50.250007, 0.000000, -180.900085 );
return 1;
}
Re: Helo with object to car spawn -
SoLetsGO - 28.08.2016
Can you show the code where you define the variable "INFA[]" ?