dELpLy_

AntiSpawnKill

Jul 3rd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_BLUE 0x0000BBAA
  4. #define COLOR_ORANGE 0xFF9900AA
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" [FS] - Anti-Spawn Kill");
  10. print(" LK1NGP7");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. print("\n--------------------------------------");
  18. print(" [FS] - Anti-Spawn Kill");
  19. print(" LK1NGP7");
  20. print("--------------------------------------\n");
  21. return 1;
  22. }
  23.  
  24. public OnPlayerSpawn(playerid)
  25. {
  26. SetPlayerHealth(playerid, 10000.0);
  27. SendClientMessage(playerid, 0x0000BBAA, "[AVISO]:Tu só tens 20 segundos de AntiSpawnKill. Aguarda que acabe.");
  28. SetPlayerChatBubble(playerid, "[AVISO]:AntiSpawnKill está a proteger o player.", 0xFF9900AA, 100.0, 10000);
  29. SetTimerEx("AntiSpawnkill",20000,0,"i",playerid);
  30. return 1;
  31. }
  32.  
  33. forward AntiSpawnkill(playerid);
  34. public AntiSpawnkill(playerid)
  35. {
  36. SetPlayerHealth(playerid, 100.0);
  37. SendClientMessage(playerid, 0xFF0000AA, "[AVISO]:O AntiSpawnKill acabou. Agora vai-te a eles.");
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment