freudo Posted June 20, 2015 Share Posted June 20, 2015 (edited) help please! İts true? function ff() local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam ~= kTeam then outputChatBox("You killed your team player",killer,255,0,0,true) end end Edited June 22, 2015 by Guest Link to comment
xeon17 Posted June 20, 2015 Share Posted June 20, 2015 Use it together in the event onPlayerWasted and it should work without problems Link to comment
jingzhi Posted June 20, 2015 Share Posted June 20, 2015 help please!İts true? function ff() local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam ~= kTeam then outputChatBox("You killed your team player",killer,255,0,0,true) end end function ff() local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam == kTeam then outputChatBox("You killed your team player",killer,255,0,0,true) end end Link to comment
freudo Posted June 20, 2015 Author Share Posted June 20, 2015 İts true this? local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam ~= kTeam then Link to comment
freudo Posted June 20, 2015 Author Share Posted June 20, 2015 help please!İts true? function ff() local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam ~= kTeam then outputChatBox("You killed your team player",killer,255,0,0,true) end end function ff() local pTeam = getPlayerTeam(source) local kTeam = getPlayerTeam(killer) if pTeam == kTeam then outputChatBox("You killed your team player",killer,255,0,0,true) end end Thanks , I trying Link to comment
evan varane Posted June 22, 2015 Share Posted June 22, 2015 Try This if pTeam == kTeam then 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