AlvareZ_ Posted December 21, 2012 Share Posted December 21, 2012 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
Tete omar Posted December 21, 2012 Share Posted December 21, 2012 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
AlvareZ_ Posted December 21, 2012 Author Share Posted December 21, 2012 Thanks You <3 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