Advertisement
Guest User

Untitled

a guest
Nov 16th, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. /*
  2. Anti-Spawn Kill System
  3. Made by: ZaBraNjeNi
  4. /////////////////
  5. ///// ///////
  6. ///////
  7. ///////
  8. ////////
  9. ////////
  10. //////// //////
  11. ///////////////////
  12. */
  13.  
  14. #include a_samp
  15.  
  16.  
  17. //----------------------------------------------------------
  18. public OnFilterScriptInit()
  19. {
  20.  
  21. print("\n---------------------------------------");
  22. print(" Anti - Spawn Kill ");
  23. print(" Made by: ZaBraNjeNi ");
  24. print(" L O A D E D ");
  25. print("---------------------------------------\n");
  26. return 1;
  27.  
  28. }
  29. //----------------------------------------------------------
  30.  
  31. public OnFilterScriptExit()
  32. {
  33. print("\n---------------------------------------");
  34. print(" Anti - Spawn Kill ");
  35. print(" Made by: ZaBraNjeNi ");
  36. print(" U N - L O A D E D ");
  37. print("---------------------------------------\n");
  38. return 1;
  39. }
  40.  
  41. public OnPlayerSpawn(playerid)
  42. {
  43. SetPlayerAttachedObject(playerid, 0, 3280, 1, -0.575999, 0.120999, 0.000000, 2.200001, 88.200027, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
  44. SetPlayerAttachedObject(playerid, 1, 3280, 1, 0.165000, 0.120999, 0.815999, 1.900000, -1.599957, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
  45. SetPlayerAttachedObject(playerid, 2, 3280, 1, 0.209000, 0.150000, -0.759999, 1.900000, -1.599957, -0.200000, 1.000000, 1.000000, 1.000000, 0, 0);
  46. SetPlayerAttachedObject(playerid, 3, 3280, 1, 0.975000, 0.113999, 0.028000, 0.500001, -91.399932, -2.200000, 1.000000, 1.000000, 1.000000, 0, 0);
  47. SetPlayerAttachedObject(playerid, 4, 3280, 1, 0.218000, 0.946000, 0.031000, 91.100006, 179.800094, -0.899999, 1.000000, 1.000000, 1.000000, 0, 0);
  48. SetPlayerAttachedObject(playerid, 5, 3280, 1, 0.218000, -0.614999, -0.024999, 91.100006, 179.800094, -0.899999, 1.000000, 1.000000, 1.000000, 0, 0);
  49.  
  50. SetPlayerHealth(playerid, 999999999.0);
  51. SendClientMessage(playerid, 0xCCFF00, "[ASP]: {FFFFFF}You have {FF0000}10{FFFFFF} seconds of Anti-Spawnkill Protection");
  52. SetPlayerChatBubble(playerid, "[ASP]: Anti-Spawnkill protected player", 0xCCFF00, 100.0, 10000);
  53. SetTimerEx("AntiSpawnkill",10000,0,"i",playerid);
  54. SetTimerEx("DestroyObjects",10000,0,"i",playerid);
  55. return 1;
  56. }
  57.  
  58. forward AntiSpawnkill(playerid);
  59. public AntiSpawnkill(playerid)
  60. {
  61. SetPlayerHealth(playerid, 100.0);
  62. SendClientMessage(playerid, 0xCCFF00, "[ASP]: {FFFFFF}Anti-Spawnkill Protection. Over! Good luck!");
  63. return 1;
  64. }
  65.  
  66. forward DestroyObjects(playerid);
  67. public DestroyObjects(playerid)
  68. {
  69. RemovePlayerAttachedObject(playerid, 0);
  70. RemovePlayerAttachedObject(playerid, 1);
  71. RemovePlayerAttachedObject(playerid, 2);
  72. RemovePlayerAttachedObject(playerid, 3);
  73. RemovePlayerAttachedObject(playerid, 4);
  74. RemovePlayerAttachedObject(playerid, 5);
  75. return 1;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement