Jump to content

[AYUDA] Con este Resource


sossa

Recommended Posts

hola Alguien me Podria Ayudar A Como Configurar Este resource Enves De Skin Sea Por team

ELITE = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
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 = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local skin = getPlayerSkin ( pla ) 
            if skin == 287 then 
                outputChatBox ( "Bienvenido, "..getClientName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getClientName(pla).." A Entrado En la Zona Restringida!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", ELITE, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local skin = getPlayerSkin ( pla ) 
            if skin == 287 then 
                outputChatBox ( "Adios!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getClientName(pla).." Esta invadiendo Zona" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", ELITE, leave ) 

Link to comment
ELITE = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
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 = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local team = getPlayerTeam(pla) 
            if ( not team ) then return end 
            if team and getTeamName(team) == "NOMBREDETEAM" then 
                outputChatBox ( "Bienvenido, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getPlayerName(pla).." A Entrado En la Zona Restringida!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", ELITE, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local team = getPlayerTeam(pla) 
            if ( not team ) then return end 
            if team and getTeamName(team) == "NOMBREDETEAM" then 
                outputChatBox ( "Adios!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getPlayerName(pla).." Esta invadiendo Zona" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", ELITE, leave ) 

Edited by Guest
Link to comment

Un Amigo Me Estaba Ayudando Y mira ComO Lo iso

ELITE = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
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 = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local ELITE = {["[ELITE]"] = true} 
            if getElementType ( hitElement ) == "player" and getPlayerTeam ( hitElement ) and teams[getTeamName(getPlayerTeam ( hitElement ))] then 
                outputChatBox ( "Bienvenido, "..getClientName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getClientName(pla).." A Entrado En la Zona Restringida!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", ELITE, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
        local ELITE = {["[ELITE]"] = true} 
        if getElementType ( leaveElement ) =="player" and getPlayerTeam ( leaveElement ) and teams [getTeamName(getPlayerTeam ( leaveElement ))] then 
                outputChatBox ( "Adios!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getClientName(pla).." Esta invadiendo Zona" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", ELITE, leave ) 

Link to comment

aqui entran los que estan en el team ELITE

ELITE = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
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 = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local ELITE = {["[ELITE]"] = true} 
            if getElementType ( hitElement ) == "player" then 
              local playerTeam = getPlayerTeam ( source )  
             if ( playerTeam == "ELITE" ) then  
                outputChatBox ( "Bienvenido, "..getClientName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getClientName(pla).." A Entrado En la Zona Restringida!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
end 
addEventHandler ( "onColShapeHit", ELITE, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPlayerOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
        local ELITE = {["[ELITE]"] = true} 
        if getElementType ( leaveElement ) =="player" and getPlayerTeam ( leaveElement ) and teams [getTeamName(getPlayerTeam ( leaveElement ))] then 
                outputChatBox ( "Adios!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getClientName(pla).." Esta invadiendo Zona" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", ELITE, leave ) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...