Advertisement
Guest User

Anti spawn kill by stuun23

a guest
Nov 28th, 2014
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. //Simple anti spawn kill with objects by stuun23
  3.  
  4. //Please, if you have found any bugs please send me private message at sa-mp forums
  5.  
  6. //Username: Stuun
  7.  
  8. #include <a_samp>
  9. main()
  10. {
  11. print("Anti spawn kill by stuun23");
  12. return 1;
  13. }
  14. public OnGameModeInit()
  15. {
  16. return 1;
  17. }
  18. public OnPlayerSpawn(playerid)
  19. {
  20. SetPlayerHealth(playerid, 9999999999999);
  21. SendClientMessage(playerid, -1, "{FF0000}You are protected by spawn protection!");
  22. SetPlayerAttachedObject(playerid, 0, 18637, 17, -0.296999, -0.021000, 0.156000, -80.400009, -169.100128, 105.900047, 1.000000, 1.000000, 1.000000, 0, 0);
  23. SetPlayerAttachedObject(playerid, 1, 19163, 2, 0.064000, 0.026000, -0.007000, 58.999969, 91.500015, 110.199928, 1.089000, 1.298000, 1.000000, 0, 0);
  24. SetTimerEx("SP", 5000, false, "i", playerid);
  25. return 1;
  26. }
  27. forward SP(playerid);
  28. public SP(playerid)
  29. {
  30. SendClientMessage(playerid, -1, "{00CC00}You are no longer spawn protected.");
  31. SetPlayerHealth(playerid, 100);
  32. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  33. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement