Jump to content

[HELP] help me with this pls :(


AlvareZ_

Recommended Posts

hi, my script not work :( help me its this:

local Admincol = createColSphere(1478.501953125, -73.841705322266, 21.207813262939, 20) 
  
  
addEventHandler( "onColShapeHit", root, 
function(hitElement) 
    if getElementType ( hitElement ) == "player" then  
        if(source == Admincol) then 
        if not(isAdmin(hitElement)) then  
        outputChatBox("You are not allowed to go here. Sorry.", hitElement, 255, 0, 0, false) 
        setElementHealth(hitElement, 0) 
        end 
        end 
    end 
end) 
  
function isAdmin(thePlayer) 
    if (getElementType(thePlayer) == "player") 
        if (getElementData(thePlayer, "gang") == "Grove") then 
        return true; 
    else 
        return false; 
    end 
end 
  
  

i use gang_system help me pls

Link to comment
local Admincol = createColSphere(1478.501953125, -73.841705322266, 21.207813262939, 20) 
  
function isAdmin(thePlayer) 
    if getElementData(thePlayer, "gang") == "Grove" then 
        return true 
    else 
        return false 
    end 
end 
  
addEventHandler("onColShapeHit", root, 
    function(hitElement) 
        if getElementType ( hitElement ) == "player" then 
            if(source == Admincol) then 
                if not(isAdmin(hitElement)) then 
                    outputChatBox("You are not allowed to go here. Sorry.", hitElement, 255, 0, 0, false) 
                    killPed(hitElement) 
                end 
            end 
        end 
    end 
) 

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