iCool

iCool's Anti-SpawnKill Protection System

May 22nd, 2014
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. //Hello Everyone. This is my Fourth Filterscript.I haven't found any bugs yet.If anyone finds any, please pm me.
  2. //Please Do not repost this without my permission or remove the credits
  3. #include "a_samp"
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" Anti-SpawnKill Protection Filterscript by iCool");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12.  
  13. public OnPlayerConnect(playerid)
  14. {
  15. SendClientMessage(playerid, 0xFFFFF55, "This server uses an Anti-spawnkill protection system by iCool.");
  16. return 1;
  17. }
  18.  
  19. public OnPlayerSpawn(playerid) //you can change the below sentence to your desire.
  20. {
  21. SetPlayerHealth(playerid, 9999);
  22. SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill Protection]: You are set invincible for 10 seconds.");
  23. SetTimer("SKP", 10000, false);
  24. return 1;
  25. }
  26.  
  27. forward SKP(playerid);
  28.  
  29. public SKP(playerid)
  30. {
  31. SetPlayerHealth(playerid, 100.0);
  32. SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill Protection]: Time Over.");
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment