Jump to content

Pls fix problem


Scripting

Recommended Posts

Posted

]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) 

Posted
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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...