Castillo Posted March 18, 2012 Posted March 18, 2012 moveObject isObjectInACLGroup createColRectangle onColShapeHit
Kenix Posted March 18, 2012 Posted March 18, 2012 Also https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/CreateTeam
Castillo Posted March 18, 2012 Posted March 18, 2012 No, we help you when you have trouble with your scripts, we don't accept requests here.
Castillo Posted March 18, 2012 Posted March 18, 2012 Then you better start from the basics. https://wiki.multitheftauto.com/wiki/Scr ... troduction http://www.lua.org/pil/index.html http://lua-users.org/wiki/TutorialDirectory
Jokeℝ1472771893 Posted March 18, 2012 Author Posted March 18, 2012 No I Know Scripts But Cant Understand This Script that Group Member is near Gate and i can made Gate opened whithe CODES only
Castillo Posted March 18, 2012 Posted March 18, 2012 Click on the links I first posted and learn how their syntax.
Absence2 Posted March 18, 2012 Posted March 18, 2012 Shouldn't double post there, mate. Also check https://community.multitheftauto.com/ => gate I guess you'll get the main idea by looking into those scripts, other than that, you should just follow the links aldready given to you
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 Man i dont need to learn how to make i whant Ready Resourse
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 i Whant to make Base For CIT Server
drk Posted March 19, 2012 Posted March 19, 2012 Dude, we will not create the resource for you! Learn by yourself or pay for someone create it.
Josh Posted March 19, 2012 Posted March 19, 2012 -- this does only check if you're in the correct group. local allowedGroups = {["Groupname"]=true} -- Groups who are allowed function opengroupGate(player) local group = getElementData(hitElement, "group") if (allowedGroups[group] then -- your script here.. :> That's the code you'll be needing to check if he's in the correct group. -- this is all you need to make a gate. createObject moveObject createColSphere an example: local allowedGroups = {["Groupname"]=true} col1 = createColSphere ( x, y, z, radius ) gate1 = createObject (modelid, x,y,z) --open teh gate. function openGate1(player) local group = getElementData(hitElement, "group") if (allowedGroups[group] then moveObject (gate1, milliseconds,x,y,z ) end end addEventHandler("onColShapeHit", col1, openGate1) -- Close gate function closeGate1(player) moveObject(gate1, milliseconds,x,y,z) end addEventHandler("onColShapeLeave", col1, closeGate1)
drk Posted March 19, 2012 Posted March 19, 2012 local allowedGroups = { ["Groupname"]=true } col1 = createColSphere ( x, y, z, radius ) gate1 = createObject (modelid, x,y,z) function openGate1 ( player ) if ( allowedGroups [ getElementData ( player, "Group" ) ] ) then moveObject (gate1, milliseconds,x,y,z ) end end addEventHandler("onColShapeHit", col1, openGate1) function closeGate1() moveObject(gate1, milliseconds,x,y,z) end addEventHandler("onColShapeLeave", col1, closeGate1)
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 Like This? local allowedGroups = { ["THE_KING"]=true } col1 = createColSphere (2838.8000488281, -1653.3000488281, 10.800000190735, 10 ) gate1 = createObject (971, 2846.6999511719,-1657.1999511719,13.300000190735,0,359.5,76) function openGate1 ( player ) if ( allowedGroups [ getElementData ( player, "Group" ) ] ) then moveObject (gate1, 3000,2846.6999511719,-1657.1999511719,3.5999999046326 ) end end addEventHandler("onColShapeHit", col1, openGate1) function closeGate1() moveObject(gate1, 3000,2846.6999511719,-1657.1999511719,13.300000190735) end addEventHandler("onColShapeLeave", col1, closeGate1)
drk Posted March 19, 2012 Posted March 19, 2012 you need change getElementData ( player, "Group" ) and put your code to see if the player is in the group.
drk Posted March 19, 2012 Posted March 19, 2012 idk lol You have to know how you created your "group" and you need verify by anything the player haves.
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 (edited) Darken i dont understand Edited March 19, 2012 by Guest
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 (edited) now what me write there? Edited March 19, 2012 by Guest
Sparrow Posted March 19, 2012 Posted March 19, 2012 paruyr, you can use 'edit' button and stop double posting.
drk Posted March 19, 2012 Posted March 19, 2012 Is your group a Team in the server? Like, you used createTeam or Admin Panel create Team function or smth like that?
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