Moving a gate help!!
#10

Right, You asked me to help you on Skype so here it goes.

You will need Zcmd so here is the link: http://www.solidfiles.com/d/d20f/

So here goes, First off do this:
Код:
//Includes
#include <zcmd> //Commands processor - Quicker and better IMO

//New-Gates
new gate1;

public OnGameModeInit()
{
      // Don't use these lines if it's a filterscript
      SetGameModeText("Blank Script");
      AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

      //Gate Creation
     gate1 = CreateObject(969, 2231.45703, -2212.44116, 12.53181, 0.00000, 0.00000, -45.00000);

      return 1;
}
Now that you have done that, It should have made the gate. To make it work, Do the following:

Код:
//Below you can change the command, All you need to do is change next to the CMD: part to whatever you want your command to be. Make sure there is not a space between the colon and the command its self. 
CMD:closegate(playerid, params[])
{

	MoveObject(gate1, 2231.45703, -2212.44116, 12.53181, 1);
	SendClientMessage(playerid, 0xEF994300, "You opened (Gate Name Here)...");


	return 1;
}

CMD:opengate(playerid, params[])
{

	MoveObject(gate1, 2231.4570, -2212.4412, 9.3241, 1);
	SendClientMessage(playerid, 0xEF994300, "You closed (Gate Name Here)...");


	return 1;
}
Right now that you have done this, You may want to test this out. Just compile the script, I reccomend doing it in a game-mode because its easier for me. (IMO)

.:Steps:.
1:. Follow the steps (You may want to type it instead of copy and pasting it because of errors...)
2:. Make sure to COMPILE your game-mode after.
3:. Start your server and test it out.

Good luck and have fun coding. I sure have.

Hope I helped you, Regards,
Skillzz
Reply


Messages In This Thread
Moving a gate help!! - by LavaHDProkiller - 22.02.2013, 16:16
Re: Moving a gate help!! - by SilverKiller - 22.02.2013, 16:19
Re: Moving a gate help!! - by LavaHDProkiller - 22.02.2013, 17:47
Re: Moving a gate help!! - by Goldino - 22.02.2013, 17:48
Re: Moving a gate help!! - by Brokenbreaken - 22.02.2013, 18:09
Re: Moving a gate help!! - by LavaHDProkiller - 23.02.2013, 09:40
Re : Moving a gate help!! - by yusei - 23.02.2013, 09:51
Re: Moving a gate help!! - by [FSaF]Jarno - 23.02.2013, 09:52
Re: Moving a gate help!! - by Skillzz - 23.02.2013, 13:11
Re: Moving a gate help!! - by Skillzz - 23.02.2013, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)