Advertisement
N1E7R4V

refreshPlayerSkillWeapon

Aug 18th, 2022
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.43 KB | Gaming | 0 0
  1. function refreshPlayerSkillWeapon(pid)
  2. {
  3.     if ((getPlayerSkillWeapon(pid, 0, 1) >= 30 && getPlayerSkillWeapon(pid, 0, 1) < 60) && PStatistics[pid].last_applied_1h != "HUMANS_1HST1.MDS")
  4.     {
  5.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  6.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  7.         applyPlayerOverlay(pid, Mds.id("HUMANS_1HST1.MDS"));
  8.         PStatistics[pid].last_applied_1h = "HUMANS_1HST1.MDS";
  9.     }
  10.     else if (getPlayerSkillWeapon(pid, 0, 1) >= 60 && PStatistics[pid].last_applied_1h != "HUMANS_1HST2.MDS")
  11.     {
  12.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  13.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  14.         applyPlayerOverlay(pid, Mds.id("HUMANS_1HST2.MDS"));
  15.         PStatistics[pid].last_applied_1h = "HUMANS_1HST2.MDS";
  16.     }
  17.     else if (getPlayerSkillWeapon(pid, 0, 1) < 30 && PStatistics[pid].last_applied_1h != "HUMANS_1HST0.MDS")
  18.     {
  19.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  20.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_1h));
  21.         applyPlayerOverlay(pid, Mds.id("HUMANS_1HST0.MDS"));
  22.         PStatistics[pid].last_applied_1h = "HUMANS_1HST0.MDS";
  23.     }
  24.  
  25.     if ((getPlayerSkillWeapon(pid, 1, 1) >= 30 && getPlayerSkillWeapon(pid, 1, 1) < 60) && PStatistics[pid].last_applied_2h != "HUMANS_2HST1.MDS")
  26.     {
  27.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  28.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  29.         applyPlayerOverlay(pid, Mds.id("HUMANS_2HST1.MDS"));
  30.         PStatistics[pid].last_applied_2h = "HUMANS_2HST1.MDS";
  31.     }
  32.     else if (getPlayerSkillWeapon(pid, 1, 1) >= 60 && PStatistics[pid].last_applied_2h != "HUMANS_2HST2.MDS")
  33.     {
  34.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  35.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  36.         applyPlayerOverlay(pid, Mds.id("HUMANS_2HST2.MDS"));
  37.         PStatistics[pid].last_applied_2h = "HUMANS_2HST2.MDS";
  38.     }
  39.     else if (getPlayerSkillWeapon(pid, 1, 1) <= 30 && PStatistics[pid].last_applied_2h != "HUMANS_2HST0.MDS")
  40.     {
  41.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  42.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_2h));
  43.         applyPlayerOverlay(pid, Mds.id("HUMANS_2HST0.MDS"));
  44.         PStatistics[pid].last_applied_2h = "HUMANS_2HST0.MDS";
  45.     }
  46.  
  47.     if ((getPlayerSkillWeapon(pid, 2, 1) >= 30 && getPlayerSkillWeapon(pid, 2, 1) < 60) && PStatistics[pid].last_applied_bow != "HUMANS_BOWT1.MDS")
  48.     {
  49.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  50.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  51.         applyPlayerOverlay(pid, Mds.id("HUMANS_BOWT1.MDS"));
  52.         PStatistics[pid].last_applied_bow = "HUMANS_BOWT1.MDS";
  53.     }
  54.     else if (getPlayerSkillWeapon(pid, 2, 1) >= 60 && PStatistics[pid].last_applied_bow != "HUMANS_BOWT2.MDS")
  55.     {
  56.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  57.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  58.         applyPlayerOverlay(pid, Mds.id("HUMANS_BOWT2.MDS"));
  59.         PStatistics[pid].last_applied_bow = "HUMANS_BOWT2.MDS";
  60.     }
  61.     else if (getPlayerSkillWeapon(pid, 2, 1) <= 60 && PStatistics[pid].last_applied_2h != "HUMANS_BOWT0.MDS")
  62.     {
  63.         applyPlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  64.         removePlayerOverlay(pid, Mds.id(PStatistics[pid].last_applied_bow));
  65.         applyPlayerOverlay(pid, Mds.id("HUMANS_BOWT0.MDS"));
  66.         PStatistics[pid].last_applied_bow = "HUMANS_BOWT0.MDS";
  67.     }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement