Author Topic: i need help with filter script  (Read 620 times)

Offline Arvis_Dodge

  • Trucker
  • **
  • Posts: 67
  • cookies: 2
  • 3d graphics designer (Zmodeler,Cinema4D,Blender)
  • IG name: Gravedigger
i need help with filter script
« on: December 08, 2014, 21:37 »
why it won,t work
i want make  to rotating the crane by  him self with timer but  i do not know why it wont work
=====================================================
this is fs
=====================================================
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <streamer>

new crane;
new crane1;



#if defined FILTERSCRIPT



public OnFilterScriptInit()
{
   print("\n--------------------------------------");
   print(" Road work by Arvis_Dodge (Gravedigger)");
   print("--------------------------------------\n");
   return 1;
   {
   //maping
   CreateDynamicObject(7017, -1912.6, 944.09998, 34, 0, 0, 180);
   CreateDynamicObject(14397, -1885.3, 982.59998, 44.5, 0, 0, 0);
   CreateDynamicObject(14397, -1885.3, 982.59998, 42.1, 0, 0, 0);
   CreateDynamicObject(14397, -1895.8, 982.59998, 42.1, 0, 0, 0);
   CreateDynamicObject(14397, -1895.8, 982.59998, 44.5, 0, 0, 0);
   CreateDynamicObject(14397, -1895.8, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1887.5, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1891.5, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1900.5, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1904.5, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1908.7, 982.59998, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1884.4, 982.5, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1911.7, 982.79999, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1911.5, 988.5, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1884.6, 988.5, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1895.8, 988.40002, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1902.3, 988.40002, 32.8, 0, 90, 0);
   CreateDynamicObject(14397, -1895.7, 988.59998, 44.5, 0, 0, 0);
   CreateDynamicObject(14397, -1878.7, 988.59998, 44.5, 0, 0, 0);
   CreateDynamicObject(14397, -1878.7, 988.59998, 42.1, 0, 0, 0);
   CreateDynamicObject(14397, -1895.6, 988.59998, 42.1, 0, 0, 0);
   CreateDynamicObject(1391, -1902.1, 951.09998, 66.3, 0, 0, 0);
   CreateDynamicObject(18253, -1886.3, 963.70001, 36.5, 0, 359.75, 350);
   CreateDynamicObject(18248, -1890.7, 993, 42.9, 10, 0, 0);
   CreateDynamicObject(7017, -1892.1, 1036.8, 43.5, 0, 0, 179.995);
   CreateDynamicObject(1365, -1903.2, 994, 36.4, 0, 0, 358);
   CreateDynamicObject(1365, -1903, 997.09998, 36.9, 0, 0, 357.995);
   CreateDynamicObject(1358, -1896.9, 993.5, 36.2, 0, 0, 264);
   CreateDynamicObject(1431, -1879.7, 1012.7, 39.2, 0, 0, 70);
   CreateDynamicObject(1431, -1878.9, 1016.9, 40.1, 0, 0, 69.999);
   CreateDynamicObject(1431, -1879.2, 1014.4, 39.6, 0, 0, 69.999);
   CreateDynamicObject(1431, -1879.6, 1013.1, 40.3, 0, 0, 69.999);
   CreateDynamicObject(1431, -1878.9, 1016.8, 41.2, 0, 0, 69.999);
   CreateDynamicObject(2890, -1875.3, 1032.2, 42.7, 12, 0, 0);
   CreateDynamicObject(852, -1896.8, 996.20001, 35.5, 0, 0, 0);
   CreateDynamicObject(852, -1901.7, 1002, 36.6, 0, 0, 0);
   CreateDynamicObject(852, -1909.1, 984.20001, 44.4, 0, 0, 0);
   CreateDynamicObject(852, -1908.9, 979.59998, 34.2, 0, 0, 0);
   CreateDynamicObject(18249, -1900.8, 968.09998, 38.3, 0, 0, 356);
   //THE CRANE
   crane = CreateDynamicObject(1388, -1902.0996, 951.09961, 78.9, 0, 0, 257.998);//kranas pasuktas
   //CreateDynamicObject(1388, -1902.0996, 951.09961, 78.9, 0, 0, 17.997); //kranas pasuktas i kita puse
   }
   return 1;
   {
   SetTimer("rotating",20000,1);
   SetTimer("rotating",20000,0);
   }
   return 1;
}

public OnFilterScriptExit()
{
   return 1;
}
forward rotating();
public rotating()
{
if (CRANE1 == 1)
{
SetObjectRot(CRANE, 0, 0, 257.998, 3);
}
else
if (CRANE1 == 0)
{
SetObjectRot(CRANE, 0, 0, 17.997, 3);
}
return 1;
}
#endif
====================================================
please help me if you can guys

Offline Arvis_Dodge

  • Trucker
  • **
  • Posts: 67
  • cookies: 2
  • 3d graphics designer (Zmodeler,Cinema4D,Blender)
  • IG name: Gravedigger
Re: i need help with filter script
« Reply #1 on: December 08, 2014, 22:20 »
please guys help me with this script
 :(

Offline Dobby

  • Hero Member
  • *****
  • Posts: 4,679
  • cookies: 120
  • No longer active.
Re: i need help with filter script
« Reply #2 on: December 08, 2014, 22:29 »
Im not touching this till you use [.code][./code] tags (remove the . )
I have left SA:MP behind.

Offline Matias

  • Development Team
  • Hero Member
  • *****
  • Posts: 5,082
  • cookies: 131
  • ฅʕﻌʔฅ
  • IG name: Matias
Re: i need help with filter script
« Reply #3 on: December 08, 2014, 23:06 »
Help Board: Ask questions about the server and more experienced players will help you out.

This is not related to the server at all. Use SA-MP forums for assistance.

 

anything