23.02.2013, 13:21
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:
Now that you have done that, It should have made the gate. To make it work, Do the following:
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
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;
}
Код:
//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;
}
.: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

