Guest User

Spawn Protection

a guest
Jun 9th, 2011
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. ////////////////////////////////////////////////////Made From Scratsh////////////////////
  2. //INCLUDES
  3. #include <a_samp>
  4. ///Defining
  5. #define COLOR_RED 0xAA3333AA
  6. #define COLOR_GREEN 0x33AA33AA
  7. forward SpawnProtection(playerid);
  8. /////////////7
  9. public OnFilterScriptInit()
  10. {
  11. SetTimerEx("SpawnProtection", 10000, 0, "i");//////Anti Spawn Kill for 10 seconds
  12. return 1;
  13. }
  14. ////////////
  15. public OnPlayerConnect(playerid)
  16. {
  17. SendClientMessage(playerid, COLOR_GREEN, "AntiSpawn Kill made by Naruto_Emilio!.");
  18. return 1;
  19. }
  20.  
  21. //////////////
  22.  
  23.  
  24. public OnPlayerSpawn(playerid)
  25. {
  26. SetPlayerHealth(playerid, 99999.0);
  27. SetTimerEx("SpawnProtection", 10000, false, "i", playerid);
  28. return 1;
  29. }
  30. public SpawnProtection(playerid)
  31. {
  32. SetPlayerHealth(playerid, 100.0);
  33. return 1;
  34. }
  35. //////// www.mlservers.boilinghost.com ////////
  36. ////////Spawn Protect System Created By Naruto_Emilio////////
Advertisement
Add Comment
Please, Sign In to add comment