Someone help me? - 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: Someone help me? (
/showthread.php?tid=558786)
Someone help me? -
Marnemo2014 - 19.01.2015
Okay so i was need to know how to use /editgate like how to move it? put password on it to move it? Someone give me a video or an example please..
Re: Someone help me? -
Karolukas123 - 19.01.2015
Okey, you need to move it.. you need x,y,z open gates, ant close. simple example
new gates;
public OnGameModeInit()
gates = CreateObject(gatesID,x,y,z, 0.00000, 0.00000, 0.00000);
}
CMD: open(playerid, params[])
{
MoveObject(gates, Open gates cords ,moving speed);
GameTextForPlayer(playerid, "~R~ Opening!", 3000, 5);
return 1;
}
Re: Someone help me? -
ChromeAmazing - 19.01.2015
Quote:
Originally Posted by Karolukas123
Okey, you need to move it.. you need x,y,z open gates, ant close. simple example
new gates;
public OnGameModeInit()
gates = CreateObject(gatesID,x,y,z, 0.00000, 0.00000, 0.00000);
}
CMD: open(playerid, params[])
{
MoveObject(gates, Open gates cords ,moving speed);
GameTextForPlayer(playerid, "~R~ Opening!", 3000, 5);
return 1;
}
|
Correctly done.
Код:
new gates //defines the gates, place at the top of your gamemode
//now move to OnGameModeInit()
public OnGameModeInit() //our gamemode we're using
{
gates = CreateObject(gatesID, x, y, z); //You must include the X Y and X!
}
CMD:opengates(playerid, params[])// start of command
{
MoveObject(gates, X, Y, Z ,moving speed); //gates is what we defined and the moving speed must be added.
return 1;// end of command
}
Re: Someone help me? -
Marnemo2014 - 19.01.2015
Alright and how to let someone move it? and put pass on it?