Guest User

SPAWN KILL

a guest
Mar 26th, 2013
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1. //Anti-SpawnKill V-0.1                                                         |
  2. //Made by: Zayan                                                               |
  3. //Also wanted to show TWS guys this.
  4.  
  5. #include "a_samp"
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print(" Anti-SpawnKill Filterscript by Zayan");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnPlayerConnect(playerid)
  16. {
  17.     SendClientMessage(playerid, 0xFFFFF55, "This server is using Anti Spawn Kill FS. Made by Zayan.");
  18.     return 1;
  19. }
  20.  
  21. public OnPlayerSpawn(playerid)
  22. {
  23.     SetPlayerHealth(playerid, 9999);
  24.     SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill]: Your health has been set to god for 10 seconds.");
  25.     SetTimer("SKP", 10000, false);
  26.     return 1;
  27. }
  28.  
  29. forward SKP(playerid);
  30.  
  31. public SKP(playerid)
  32. {
  33.     SetPlayerHealth(playerid, 100.0);
  34.     SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill]: Time Over.");
  35.     return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment