Jump to content

RESOLVIDO | DUVIDA SKINS


Recommended Posts

Estou com um Problema com este Script

g_base_col = createColCuboid ( -80.199996948242, 1656.5999755859, 10.89999961853, 550, 600, 200 ) 
createBlip ( 193.248, 1890.01, 17.234, 47 ) 
  
g_root = getRootElement () 
  
--rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
--rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
  
function hit ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
    local skin = getElementModel(pla) 
        if vehicle or not vehicle then 
             
            if skin == 277  then 
            outputChatBox ( "Seja Bem Vindo Soldado, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "Você é um Invasor! saia dessa Area Agora! Por Bem ou por Mau!", pla, 255,0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
    local skin = getElementModel(pla) 
        if vehicle or not vehicle then 
        if skin == 277 then 
        outputChatBox ( "Até logo soldado!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) 
                outputChatBox ( "Fez bem em obedecer... não sem nem dizer como você saiu vivo dali...", pla, 255,0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", g_base_col, leave ) 

Sempre que tento adicionar outra skin , usando funções or ou usando uma Vírgula ele buga alguem tem como dizer que função devo usar para adicionar mais de uma skin ao script !

Edited by Guest
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...