Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TeamCheck(pl) //Checks player team & opens last visited page by player.
- if pl:Team() == 1 then
- if pl.hMenuPage2==1 then
- hook.Run("phm_h2",pl)
- else
- if pl.hMenuPage3==1 then
- hook.Run("phm_h3",pl)
- else
- if pl.hMenuPage4==1 then
- hook.Run("phm_h4",pl)
- else
- if pl.hMenuPage5==1 then
- hook.Run("phm_h5",pl)
- else
- if pl.hMenuPage6==1 then
- hook.Run("phm_h6",pl);
- else
- if pl.hMenuPage7==1 then
- hook.Run("phm_h6",pl);
- else
- if pl.hMenuPage7==1 then
- hook.Run("phm_h7",pl)
- else
- if pl.hMenuPage8==1 then
- hook.Run("phm_h8",pl);
- else
- if pl.hMenuPage9==1 then
- hook.Run("phm_h9",pl);
- else
- if pl.hMenuPage10==1 then
- hook.Run("phm_h10",pl);
- else
- hook.Run("phm_h1",pl)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- pl.MenuOpen=1;
- else
- if pl:Team() == 2 then
- if pl.MenuPage2==1 then
- hook.Run("phm_p2",pl)
- else
- if pl.MenuPage3==1 then
- hook.Run("phm_p3",pl)
- else
- if pl.MenuPage4==1 then
- hook.Run("phm_p4",pl)
- else
- if pl.MenuPage5==1 then
- hook.Run("phm_p5",pl)
- else
- if pl.MenuPage6==1 then
- hook.Run("phm_p6",pl);
- else
- if pl.MenuPage7==1 then
- hook.Run("phm_p7",pl);
- else
- if pl.MenuPage8==1 then
- hook.Run("phm_p8",pl);
- else
- if pl.MenuPage9==1 then
- hook.Run("phm_p9",pl);
- else
- if pl.MenuPage10==1 then
- hook.Run("phm_p10",pl);
- else
- if pl.MenuPage11==1 then
- hook.Run("phm_p5",pl)
- else
- hook.Run("phm_p1",pl)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- pl.MenuOpen=1;
- else
- chat.AddText(Color(214,0,0),"[Taunt Menu]", Color(0,225,126)," You must be in one of the teams to use the menu.")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement