SA-MP Forums Archive
What is GATE ID - 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: What is GATE ID (/showthread.php?tid=588012)



What is GATE ID - saffierr - 04.09.2015

Does anyone know what the best way of adding Gates etc... etc....
As far as I know you have to do CreateObject.
Any tips? A

And, what is the GATE ID?


Re: What is GATE ID - Michael B - 04.09.2015

Right. Use CreateDynamicObject with streamer plugin. Take the gate's IDs from here. Use MoveObject function to move your gates.


Re: What is GATE ID - saffierr - 04.09.2015

mmm, appreciated bro, I guess I can live with it.
I will reply if I get stuck somewhere.
Thank you.


Re: What is GATE ID - saffierr - 04.09.2015

Well, I've got this error....
Quote:

warning 213: tag mismatch

For this:
PHP код:
CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.4690005.0); 
I am not kinda experienced with the Dynamic thingy nor with Objects.


Re: What is GATE ID - saffierr - 05.09.2015

Sorry for the Triple post, but, I don't know what's wrong with the code in my previous post.
Could anyone explain me how to work with Dynamic objects... or is it just the same as CreateObject?


Re: What is GATE ID - jlalt - 05.09.2015

PHP код:
CreateDynamicObject(modelidxyzrxryrz); 
=
PHP код:
new mygate;
public 
OnFilterScriptInit()
{
mygate CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.469000);
return 
1;
}

CMD:movegate(playerid,params[])
{
MoveDynamicObject(mygate,X,Y,Z,Speed,RX,RY,RZ);
return 
1;




Re: What is GATE ID - saffierr - 05.09.2015

I don't know why but I don't have OnFilterScriptInit.... Did you create that?
Where should I create that callback


Re: What is GATE ID - jlalt - 05.09.2015

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I don't know why but I don't have OnFilterScriptInit.... Did you create that?
Where should I create that callback
you can also put the CreateDynamicObject after:
public OnGameModeInit()
{


Re: What is GATE ID - saffierr - 05.09.2015

I don't know which co-ordinates I have to fill in in RX/RY/RZ...


Re: What is GATE ID - jlalt - 05.09.2015

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I don't know which co-ordinates I have to fill in in RX/RY/RZ...
RX RY RZ mean the rotation you can put the rotation of your gate which you made it:
CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.4690, 0, 0);
PHP код:
RX180.4690 RY0 RZ
Код:
MoveDynamicObject(mygate,X,Y,Z,Speed,180.4690,0,0);