Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <foreach>
  4.  
  5. #define SCM SendClientMessage
  6. #define SCMALL SendClientMessageToAll
  7.  
  8. new Bulangiu[MAX_PLAYERS],
  9. FastGiftPoints = 0;
  10.  
  11. CMD:fastgift(playerid)
  12. {
  13. if(Bulangiu[playerid] == 1) return SCM(playerid, -1, "Ai luat deja un cadou, asteapta pana reseteaza un admin.");
  14. if(FastGiftPoints == 0) return SCM(playerid, -1, "Sunt 0 cadouri nu este resetat fast gift-ul.");
  15. Bulangiu[playerid] = 1;
  16. if(FastGiftPoints == 1)
  17. {
  18. // Aici poti adauga ce vrei sa primeasca la cadoul 1 (bani , masina , casa , level)
  19. FastGiftPoints = 2;
  20. SCMALL(-1, "Mai sunt 4 cadouri.");
  21. }
  22. else if(FastGiftPoints == 2)
  23. {
  24. // Aici poti adauga ce vrei sa primeasca la cadoul 2 (bani , masina , casa , level)
  25. FastGiftPoints = 3;
  26. SCMALL(-1, "Mai sunt 3 cadouri.");
  27. }
  28. else if(FastGiftPoints == 3)
  29. {
  30. // Aici poti adauga ce vrei sa primeasca la cadoul 3 (bani , masina , casa , level)
  31. FastGiftPoints = 4;
  32. SCMALL(-1, "Mai sunt 2 cadouri.");
  33. }
  34. else if(FastGiftPoints == 4)
  35. {
  36. // Aici poti adauga ce vrei sa primeasca la cadoul 4 (bani , masina , casa , level)
  37. FastGiftPoints = 5;
  38. SCMALL(-1, "Mai este 1 cadou.");
  39. }
  40. else if(FastGiftPoints == 5)
  41. {
  42. // Aici poti adauga ce vrei sa primeasca la cadoul 5 (bani , masina , casa , level)
  43. FastGiftPoints = 0;
  44. SCMALL(-1, "Nu mai sunt cadouri, pana activeaza un admin /resetfastgift.");
  45. }
  46. return 1;
  47. }
  48.  
  49. CMD:resetfastgift(playerid)
  50. {
  51. foreach(new i : Player)
  52. {
  53. Bulangiu[playerid] = 0;
  54. }
  55. FastGiftPoints = 1;
  56. SCMALL(-1, "Un admin a bagat iar Fast Gift, hai si tu /gps > Fast Gift.");
  57. return 1;
  58. }