Helo with object to car spawn
#1

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
Reply
#2

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;
}
Reply
#3

Can you show the code where you define the variable "INFA[]" ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)