Scripting Posted February 20, 2012 Share Posted February 20, 2012 ]Hi Pepole i have A problem with my script pls I Want A help He always get the name Player and don t get the health player get = getPlayerTeam(source) local team = getTeamName(get) if team == 1 then getPlayerName(source) else getElementHealth(source) Link to comment
Castillo Posted February 20, 2012 Share Posted February 20, 2012 playerTeam = getPlayerTeam(source) if (not playerTeam) then return end local team = getTeamName(playerTeam) if (team == "1") then name = getPlayerName(source) else health = getElementHealth(source) end P.S: You're using this with a function, right? Link to comment
Kenix Posted February 20, 2012 Share Posted February 20, 2012 He should use event/function or element data ( if source player element ). Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now