Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #include <a_samp>
  2. #include <streamer>
  3. #include<zcmd>
  4. #define FILTERSCRIPT
  5.  
  6. new HEALME[MAX_PLAYERS];
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n--------------------------------------");
  11. print(" Simple Heal Me by Joe Vitollo");
  12. print("--------------------------------------\n");
  13. return 1;
  14. }
  15.  
  16. public OnPlayerConnect(playerid)
  17. {
  18. HEALME[playerid] = 0;
  19. return 1;
  20. }
  21. forward reloaded(playerid);
  22. public reloaded(playerid)
  23. {
  24. HEALME[playerid] = 0;
  25. SendClientMessage(playerid, -1, "Acum poti folosi comanda /healme.");
  26. return 1;
  27. }
  28. CMD:healme(playerid, params[])
  29. {
  30. if( HEALME[ playerid ] != 0 ) return SendClientMessage( playerid, -1, "Ai luat recent heal.Asteapta 30 secunde." );
  31. SetPlayerHealth(playerid, 100);
  32. SetTimer("reloaded", 30000, 0);
  33. HEALME[playerid] = 1;
  34. SendClientMessage(playerid, -1, "Ai luat heal.Poti folosi comanda dupa 30 de secunde.");
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement