Need to put in a automatic gate in pawno, but dont know where to put - 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: Need to put in a automatic gate in pawno, but dont know where to put (
/showthread.php?tid=129346)
Need to put in a automatic gate in pawno, but dont know where to put -
manunited1878 - 21.02.2010
like you saw in the title, i dont know where to put my gate script.
Код:
#include <a_samp>
new Boat gate;
forward Boat gateTimer(playerid);
public OnFilterScriptInit()
{
Boat gate = CreateObject(989, 376.90994262695, -1943.0893554688, 0, 0, 0, 13.890258789063);
SetTimer("Boat gateTimer", 1000, 1);
}
public Boat gateTimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10,0, 376.90994262695, -1943.0893554688, 0))
{
MoveObject(Boat gate, 377.06930541992, -1937.6352539063, 0, 3);
}else{
MoveObject(Boat gate, 376.90994262695, -1943.0893554688, 0, 3);
}
Re: Need to put in a automatic gate in pawno, but dont know where to put -
aircombat - 21.02.2010
OnGameModeInit ,
see the file i attached it will help u alot in making gates :
V
V
V
________
Airsoft air rifle
Re: Need to put in a automatic gate in pawno, but dont know where to put -
manunited1878 - 21.02.2010
can someone just give me the full script? with compiled? i have used agate
Re: Need to put in a automatic gate in pawno, but dont know where to put -
Rizard - 21.02.2010
Not really scripting discussion now is it
.......