Jump to content

hit


Fabioxps

Recommended Posts

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

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...