Guest User

spawn Kill

a guest
Nov 20th, 2011
1,208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include a_samp
  2.  
  3. public OnPlayerSpawn(playerid)
  4. {
  5. SetPlayerHealth(playerid, 10000.0);
  6. SendClientMessage(playerid, 0xFF0000AA, "[INFO]:You have 5 seconds of Anti-Spawnkill protection");
  7. SetPlayerChatBubble(playerid, "[INFO]:Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
  8. SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
  9. return 1;
  10. }
  11.  
  12.  
  13. forward AntiSpawnkill(playerid);
  14. public AntiSpawnkill(playerid)
  15. {
  16. SetPlayerHealth(playerid, 100.0);
  17. SendClientMessage(playerid, 0xFF0000AA, "[INFO]:Anti-Spawnkill protection over, you are on your own now");
  18. return 1;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment