Advertisement
Longibotti

SA Werft

Apr 27th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.94 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new boothulle;
  4. new bootladung;
  5. new bootcontrol;
  6. new launchbla;
  7. new andockstega;
  8. new andockstegb;
  9. new andockschild;
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.         print("\n--------------------------------------");
  14.         print("SanAnWerft V2 - Betaversion");
  15.         print("--------------------------------------\n");
  16.         CreateObject(1272,-1376.08032227,145.48844910,14.25726223,0.00000000,0.00000000,0.00000000); //object(property_locked) (1)
  17.         CreateObject(9361,-1376.63989258,149.44848633,15.93780136,0.00000000,0.00000000,92.00000000); //object(boatoffice_sfn) (2)
  18.         andockstega = CreateObject(3886,-1378.40258789,163.22082520,9.76000023,0.00000000,0.00000000,46.00000000); //object(ws_jettynol_sfx) (1)
  19.         andockstegb = CreateObject(3886,-1371.42236328,156.44801331,7.80000019,22.50000000,0.00000000,45.99975586); //object(ws_jettynol_sfx) (2)
  20.         andockschild = CreateObject(3264,-1370.72155762,155.68817139,10.95000076,0.00000000,0.00000000,46.25000000); //object(privatesign3) (1)
  21.         launchbla = AddStaticVehicleEx(453,-1360.7883300781, 213.18420410156, 1, 1, 1, 1, 15);
  22.         return 1;
  23. }
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27.         if (strcmp("/start", cmdtext, true, 10) == 0)
  28.         if(IsPlayerInVehicle(playerid, launchbla))
  29.         {
  30.                 AttachObjectToPlayer(boothulle, playerid, 0, 0, 0, 0, 0, 90 );
  31.                 AttachObjectToPlayer(bootladung, playerid, 0, -1.5, 10, 0, 0, 90 );
  32.                 AttachObjectToPlayer(bootcontrol, playerid, 0, -74.5, 28, 0, 0, 90 );
  33.                 return 1;
  34.         }
  35. //andocken
  36.     if(strcmp(cmdtext, "/andocken", true) == 0)
  37.     if(IsPlayerInRangeOfPoint(playerid, 15.0, -1383, 168, 16.3))
  38.     {
  39.                 MoveObject(andockschild, -1370.72155762,155.68817139,10, 2.00);
  40.                 MoveObject(andockstega, -1378.40258789,163.22082520,9.76, 18.00);
  41.                 MoveObject(andockstegb, -1371.42236328,156.44801331,7.80000019, 18.00);
  42.         return 0;
  43.     }
  44. //abdocken
  45.     if(strcmp(cmdtext, "/abdocken", true) == 0)
  46.     if(IsPlayerInRangeOfPoint(playerid, 15.0, -1383, 168, 16.3))
  47.     {
  48.                 MoveObject(andockschild, -1370.72155762,155.68817139,13.3, 2.00);
  49.                 MoveObject(andockstega, -1378.40258789,163.22082520,-20, 9.00);
  50.         MoveObject(andockstegb, -1371.42236328,156.44801331,-20, 9.00);
  51.         return 0;
  52.     }
  53.         if (strcmp("/go", cmdtext, true, 10) == 0)
  54.         {
  55.             new Float:xw, Float:yw, Float:zw;
  56.                 GetObjectPos(boothulle, xw, yw, zw);
  57.                 SetPlayerPos(playerid,xw,yw,zw);
  58.                 return 1;
  59.         }
  60.         if (strcmp("/rein", cmdtext, true, 10) == 0)
  61.         {
  62.                 new Float:xh, Float:yh, Float:zh;
  63.             GetPlayerPos(playerid,xh,yh,zh);
  64.                 SetPlayerPos(playerid,xh,yh,zh-10);
  65.                 return 1;
  66.         }
  67.         if (strcmp("/raus", cmdtext, true, 10) == 0)
  68.         {
  69.                 new Float:xd, Float:yd, Float:zd;
  70.             GetPlayerPos(playerid,xd,yd,zd);
  71.                 SetPlayerPos(playerid,xd,yd,zd+16);
  72.                 return 1;
  73.         }
  74.         if (strcmp("/vorbereiten", cmdtext, true, 10) == 0)
  75.         {
  76.         boothulle = CreateObject(10794,-1372.92028809,200.94018555,0.69999838,0.00000000,0.00000000,45.00000000); //object(car_ship_04_sfse) (2)
  77.         bootladung = CreateObject(10795,-1374.52209473,199.36412048,10.72677612,0.00000000,0.00000000,45.00000000); //object(car_ship_05_sfse) (2)
  78.         bootcontrol = CreateObject(10793,-1426.15966797,147.82740784,29.00863647,0.00000000,0.00000000,45.00000000); //object(car_ship_03_sfse) (2)
  79.         }
  80.  
  81.  
  82.         return 0;
  83. }
  84.  
  85. public OnFilterScriptExit()
  86. {
  87. DestroyObject(boothulle);
  88. DestroyObject(bootladung);
  89. DestroyObject(bootcontrol);
  90. DestroyVehicle(launchbla);
  91. return 1;
  92. }
  93.  
  94. public OnPlayerExitVehicle()
  95. {
  96. DestroyObject(boothulle);
  97. DestroyObject(bootladung);
  98. DestroyObject(bootcontrol);
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement