SA-MP Forums Archive
[HELP] Plz. I Need A Help .. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Plz. I Need A Help .. (/showthread.php?tid=222610)



[HELP] Plz. I Need A Help .. - Stunt_Guy - 07.02.2011

new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
-----------------------------------------
I Compile There's No Errors ... No Warns .. BUT ..
When i go to the game ... and type the Command .. The GATE Don't MOVE!! ...
So anyone plz. can help me on this problem ?
-----------------------------------------
Thanks
Stunt_Guy_Drift_Guy


Re: [HELP] Plz. I Need A Help .. - Gh0sT_ - 07.02.2011

you are creating obj with createdynamicobject, so on object moving you need to use MoveDynamicObject


Re: [HELP] Plz. I Need A Help .. - xRyder - 07.02.2011

You need to use
pawn Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
instead MoveObject since you use streamer.


Re: [HELP] Plz. I Need A Help .. - Stunt_Guy - 07.02.2011

new Gate;
----------
Gate = MoveDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,5.0); //object(plasticsgate1) (1)
----------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveObject(Gate,-2028.13928223,-151.11863708,26.13164520,5.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
-----------------
but it still don't work ..


Re: [HELP] Plz. I Need A Help .. - Stigg - 07.02.2011

1st:

gate = CreateDynamicObject

Then:

MoveDynamicObject

Peace...


Re: [HELP] Plz. I Need A Help .. - Zack9764 - 07.02.2011

No. The gate does not = MoveDynamicObject. The CMD moves the dynamic object. So it should be this:

Код:
new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveDynamicObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}



Re: [HELP] Plz. I Need A Help .. - Stunt_Guy - 07.02.2011

Quote:
Originally Posted by Zack9764
Посмотреть сообщение
No. The gate does not = MoveDynamicObject. The CMD moves the dynamic object. So it should be this:

Код:
new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveDynamicObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
It Works .. But Something Happen .. When i type /openadmingate ...
I See Like 2 Gates .. The First Moved But The Second .. Still ... So??


Re: [HELP] Plz. I Need A Help .. - Stunt_Guy - 07.02.2011

No Comments ? No Help ? Please I Wanna Make My Admin House Gate ... And If Someone Really Help Me .. I'm Going To Tell Him Thank You Very Much ! So Please ....


Re: [HELP] Plz. I Need A Help .. - DRIFT_HUNTER - 07.02.2011

Quote:
Originally Posted by Stunt_Guy
Посмотреть сообщение
It Works .. But Something Happen .. When i type /openadmingate ...
I See Like 2 Gates .. The First Moved But The Second .. Still ... So??
Quote:
Originally Posted by Stunt_Guy
Посмотреть сообщение
No Comments ? No Help ? Please I Wanna Make My Admin House Gate ... And If Someone Really Help Me .. I'm Going To Tell Him Thank You Very Much ! So Please ....
You fucking kidding me......REMOVE THE 2ND GATE !!!!!


Re: [HELP] Plz. I Need A Help .. - Stunt_Guy - 07.02.2011

It's Just Only One Object .. But This Really Happen ..