Jump to content

warnText


-misterX-

Recommended Posts

why doesnt the warntext work???

function hit ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
        if getElementType ~= zombie then 
        local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( pla ) ) ) 
        if ( gang == "ARMY" ) then 
                        warnText ( "Welcome", pla ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                    warnText ( "You entered a restricted area", pla ) 
                end 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 

Link to comment
why doesnt the warntext work???
function hit ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
        if getElementType ~= zombie then 
        local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( pla ) ) ) 
        if ( gang == "ARMY" ) then 
                        warnText ( "Welcome", pla ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                    warnText ( "You entered a restricted area", pla ) 
                end 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 

in the line 5 you are not defined zombie

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