Advertisement
N1E7R4V

Untitled

Mar 14th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.99 KB | None | 0 0
  1. function Stoyka(playerid)
  2. if Player[playerid].timer == true then
  3. local ONEHAND = GetPlayerSkillWeapon(playerid,SKILL_1H);
  4. local TWOHAND = GetPlayerSkillWeapon(playerid,SKILL_2H);
  5. local BOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_BOW);
  6. local CBOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_CBOW);
  7. if Player[playerid].class == 1 or Player[playerid].class == 6 or Player[playerid].class == 7 then
  8. SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND-20);
  9. SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND-20);
  10. SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON-20);
  11. SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON-20);
  12. else
  13. SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND-30);
  14. SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND-30);
  15. SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON-30);
  16. SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON-30);
  17. end
  18. SendPlayerMessage(playerid,255,255,0,"(ИНФО): Ждите 2 секунды!")
  19. Player[playerid].timer = false
  20. SetTimerEx("Stoyka2",2000,0,playerid);
  21. else
  22. SendPlayerMessage(playerid,255,255,0,"(ИНФО): Еще рано!")
  23. end
  24. end
  25.  
  26. function Stoyka2(playerid)
  27. local ONEHAND = GetPlayerSkillWeapon(playerid,SKILL_1H);
  28. local TWOHAND = GetPlayerSkillWeapon(playerid,SKILL_2H);
  29. local BOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_BOW);
  30. local CBOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_CBOW);
  31. if Player[playerid].class == 1 or Player[playerid].class == 6 or Player[playerid].class == 7 then
  32. SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND+20);
  33. SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND+20);
  34. SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON+20);
  35. SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON+20);
  36. else
  37. SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND+30);
  38. SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND+30);
  39. SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON+30);
  40. SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON+30);
  41. end
  42. Player[playerid].timer = true
  43. SendPlayerMessage(playerid,255,255,0,"(ИНФО): Стойка исправлена!")
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement