Guest User

Untitled

a guest
Jan 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.22 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. //Includes
  6. #include <a_samp>
  7. #include <a_players>
  8. //News
  9. new IsPlayerInHydra[MAX_PLAYERS];
  10. #if defined FILTERSCRIPT
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("\n--------------------------------------");
  15.     print(" Hydra System By Elad ");
  16.     print("--------------------------------------\n");
  17.     return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22.     return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29.     print("\n----------------------------------");
  30.     print(" Hydra System By Elad ");
  31.     print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. public OnGameModeInit()
  37. {
  38. CreateVehicle(520, 294.9219, 1949.1024, 18.3189, -55.0000, -1, -1, 100); //Hydra 1
  39. CreateVehicle(520, 295.4395, 1980.1680, 18.3189, -55.0000, -1, -1, 100); //Hydra 2
  40. CreateVehicle(520, 294.6758, 2013.9963, 18.3189, -55.0000, -1, -1, 100); //Hydra 3
  41. CreateVehicle(520, 295.4164, 2030.6583, 18.3189, -133.0000, -1, -1, 100); //Hydra 4
  42. CreateVehicle(520, 295.9879, 1999.0372, 18.3189, -133.0000, -1, -1, 100); //Hydra 5
  43. CreateVehicle(520, 295.8665, 1965.9890, 18.3189, -133.0000, -1, -1, 100); //Hydra 6
  44. CreateVehicle(520, 293.5059, 1990.0460, 18.3189, -94.0000, -1, -1, 100); //Hydra 7
  45. CreateVehicle(520, 293.1179, 1957.4163, 18.3189, -94.0000, -1, -1, 100); //Hydra 8
  46. CreateVehicle(520, 292.7037, 2022.4250, 18.3189, -94.0000, -1, -1, 100); //Hydra 9
  47.     return 1;
  48. }
  49. public OnPlayerSpawn(playerid)
  50. {
  51. if(IsPlayerInHydra[playerid] == 1);
  52. {
  53. SetPlayerPos(playerid,-2578.5879,1099.7986,55.5781);
  54. SetPlayerFacingAngle(playerid, 11.0148);
  55. SendClientMessage(playerid,0xFFFFFFFF,"Hydra çæøú áàåôï àåèåîèé ì");
  56. {
  57.     return 1;
  58. }
  59. public OnPlayerCommandText(playerid, cmdtext[])
  60. {
  61.     if (strcmp("/hydra", cmdtext, true, 10) == 0)
  62.     {
  63.         SetPlayerPos(playerid,310.7225,1990.7762,17.6406);
  64.         SetPlayerFacingAngle(playerid, 92.5182);
  65.         SetPlayerVirtualWorld(playerid, 4567);
  66.         IsPlayerInHydra[playerid] = 1;
  67.         return 1;
  68.     }
  69.     if (strcmp("/QHydra", cmdtext, true, 10) == 0)
  70.     {
  71.         SetPlayerPos(playerid, -2578.5879,1099.7986,55.5781);
  72.         SetPlayerFacingAngle(playerid, 11.0148);
  73.         SetPlayerVirtualWorld(playerid, 0);
  74.         IsPlayerInHydra[playerid] = 0;
  75.         return 1;
  76.     }
  77.     return 0;
  78. }
Add Comment
Please, Sign In to add comment