Fabioxps Posted September 4, 2013 Share Posted September 4, 2013 ?? poblem function onHitGangZone ( player ) --if ( isPedInVehicle ( player ) ) then outputChatBox ( 'You cannot get this area with a vehicle!', player, 255, 255, 255, false ); return end if ( not getPlayerTeam ( player ) ) then return end local oulDNick = getElementData( "dono" ); outputChatBox('A GANG #123456"'..getTeamName ( getPlayerTeam ( player ) )..'" #ffffffESTA ATACANDO GANGZONA #ff4500'..oulDNick..' | Area: '..zone,getRootElement(),255,255,255,true); i = 20 timer = setTimer ( function ( ) i = i - 1 triggerClientEvent ( 'onAnnChange', root, i .. ' seconds to done! Attacker: ' .. getPlayerName ( player ) .. ' | Area: ' .. zone ); if ( i == 0 ) then killTimer ( timer ) outputChatBox('A GANG #123456"'..getTeamName ( getPlayerTeam ( player ) )..'" #ffffffDOMINOU A GANGZONA #ff4500'..zone,getRootElement(),255,255,255,true); = setElementData ( "dono", getTeamName ( getPlayerTeam ( player ) ) ); = end end, 1000, 0 ) --end end end Link to comment
Brad96 Posted September 4, 2013 Share Posted September 4, 2013 what is your problem ? especific Link to comment
Fabioxps Posted September 4, 2013 Author Share Posted September 4, 2013 what is your problem ? especificlocal oulDNick = getElementData( "dono" ); Link to comment
Moderators IIYAMA Posted September 4, 2013 Moderators Share Posted September 4, 2013 local oulDNick = getElementData(player, "dono" ) local team = getPlayerTeam ( player ) setElementData (player, "dono", team and getTeamName ( team ) or "none" ) 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