Stronger Posted November 29, 2015 Share Posted November 29, 2015 (edited) 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 November 29, 2015 by Guest Link to comment
n3wage Posted November 29, 2015 Share Posted November 29, 2015 if skin == 277 or skin == 123 then É isso? Link to comment
Stronger Posted November 29, 2015 Author Share Posted November 29, 2015 Nem Tinha Pensado Nisso , OBRIGADO ! 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