Endorps

[FilterScript] Anti Spawn-Kill

Jul 28th, 2017
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.95 KB | None | 0 0
  1. /*==============================================================================
  2.                     ______          __
  3.                    / ____/___  ____/ /___  _________  _____
  4.                   / __/ / __ \/ __  / __ \/ ___/ __ \/ ___/
  5.                  / /___/ / / / /_/ / /_/ / /  / /_/ (__  )
  6.                 /_____/_/ /_/\__,_/\____/_/  / .___/____/
  7.                                             /_/
  8.  
  9. ================================================================================
  10.                             - Anti Spawn-Kill -
  11.                               - by Endorps -
  12. ==============================================================================*/
  13. //------------------------------------------------------------------------------
  14. #include <a_samp>
  15. //------------------------------------------------------------------------------
  16. #define FILTERSCRIPT
  17. //------------------------------------------------------------------------------
  18. #if defined FILTERSCRIPT
  19. //------------------------------------------------------------------------------
  20. public OnFilterScriptInit()
  21. {
  22.     print("\n--------------------------------------");
  23.     print(" Blank Filterscript by your name here");
  24.     print("--------------------------------------\n");
  25.     return 1;
  26. }
  27. //------------------------------------------------------------------------------
  28. public OnFilterScriptExit()
  29. {
  30.     return 1;
  31. }
  32. //------------------------------------------------------------------------------
  33. #else
  34. //------------------------------------------------------------------------------
  35. main()
  36. {
  37.     print("\n----------------------------------");
  38.     print(" Blank Gamemode by your name here");
  39.     print("----------------------------------\n");
  40. }
  41. //------------------------------------------------------------------------------
  42. public OnPlayerSpawn(playerid) // kada se igrac stvori pokrece sve ispod
  43. {
  44.     SetPlayerHealth(playerid, 10000.0); // stavlja igracu 10000 helta tako da ga niko nemoze ubiti
  45.     SendClientMessage(playerid, 0x33CCFFAA, "Imate 5 sekundi anti spawn-kill protekcije."); // salje igracu poruku da imaju anti spawn-kill protekciju
  46.     SetTimerEx("antisk",5000,0,"i",playerid); // broj 5000 (5 sekundi) mozete promijeniti sa svojim (npr. ako promijenite 5000 sa 10000 anti spawn-kill ce trajati 10 sekundi).
  47.     return 1;
  48. }
  49. //------------------------------------------------------------------------------
  50. forward antisk(playerid); // forwarduje public antisk
  51. public antisk(playerid) // kada timer zavrsi odbrojavanje pokrece sve ispod
  52. {
  53.     SetPlayerHealth(playerid, 100.0); // stavlja igracu helte na 100
  54.     SendClientMessage(playerid, 0xAAAA33AA, "Vise nemate anti spawn-kill protekciju!"); // salje igracu poruku da vise nemaju anti spawn-kill protekciju
  55.     return 1;
  56. }
  57. //------------------------------------------------------------------------------
  58. #endif
  59. /*==============================================================================
  60.                                 - Kraj skripte -
  61.                                   - Uzivajte -
  62. ==============================================================================*/
Advertisement
Add Comment
Please, Sign In to add comment