Jump to content

سؤال


Recommended Posts

يمديني احول الكود هاد

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 ( "Welcome, "..getClientName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getClientName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 

الى كذا؟

local groupName = '[ARMY]'

local teamName = 'Police'

Link to comment

كتبت كل الكود ذا

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 ( "Welcome, "..getClientName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getClientName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 

ومانك عارف تضيف تحققين؟

:3 لا حول

Link to comment

local groupName = '[ARMY]' 
local teamName = 'Police' 
  
function hit ( pla, dim ) 
    if ( getElementType ( pla ) == "player" ) then 
        local Team = getPlayerTeam(pla)  
        if ( Team ) and ( getTeamName(Team) == teamName ) and ( getElementData( pla ,"Group") == groupName ) then 
            outputChatBox ( "Welcome, "..getPlayerName(pla).." !", pla, 0, 150, 0 ) 
        else 
            setElementData ( pla, "inRestrictedArea", "true" ) 
            triggerClientEvent ( pla, "destroyTrepassor", root, pla ) 
            outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
            outputChatBox ( "* "..getPlayerName(pla).." has entered Restricted Area!", root, 255, 0, 0 ) 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  
Link to comment
local groupName = '[ARMY]' 
local teamName = 'Police' 
  
function hit ( pla, dim ) 
    if ( getElementType ( pla ) == "player" ) then 
        local Team = getPlayerTeam(pla)  
        if ( Team ) and ( getTeamName(Team) == teamName ) and ( getElementData( pla ,"Group") == groupName ) then 
            outputChatBox ( "Welcome, "..getPlayerName(pla).." !", pla, 0, 150, 0 ) 
        else 
            setElementData ( pla, "inRestrictedArea", "true" ) 
            triggerClientEvent ( pla, "destroyTrepassor", root, pla ) 
            outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
            outputChatBox ( "* "..getPlayerName(pla).." has entered Restricted Area!", root, 255, 0, 0 ) 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  

كفو شنب

يمديني اسوي هيك؟

local groupName='[ARMY],[sWAT]' ?

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