Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 I Dont know that its Gui and in that Gui you can create Team, Invait Players and etc
drk Posted March 19, 2012 Posted March 19, 2012 LOL Then, I can't help u. I need know how you create the team / group.
Jokeℝ1472771893 Posted March 19, 2012 Author Posted March 19, 2012 But its dont work i try in my server its dont work 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 Obviously don't work. "Group" data do not exists. You need change getElementData ( player, "Group" ). Is your group in DXScoreboard ? ( Press Tab to see )
drk Posted March 19, 2012 Posted March 19, 2012 Cause I don't know how group have been created, then I can't say how you can verify if the player is a group member. And Josh, your code is wrong dude. Stop posting this.
Josh Posted March 19, 2012 Posted March 19, 2012 Cause I don't know how group have been created, then I can't say how you can verify if the player is a group member.And Josh, your code is wrong dude. Stop posting this. Funny, because this is the way the Government/FBI/SAPD scripted their gates/markers..
drk Posted March 19, 2012 Posted March 19, 2012 Funny is: I corrected your code and you posted your wrong code again.
Josh Posted March 19, 2012 Posted March 19, 2012 Funny is: I corrected your code and you posted your wrong code again. My misstake. I just tried 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) on my local, with a group resource running. created the gang THE_KING and the gate opens properly except the fact that it's placed in middle of a street. easiest would be to connect to their irc, join #scripting and having a chat with them, if you ask nicely.
drk Posted March 19, 2012 Posted March 19, 2012 The problem is: data "Group" don't exists, only in your local cause you are using a group resource.
Josh Posted March 19, 2012 Posted March 19, 2012 The problem is: data "Group" don't exists, only in your local cause you are using a group resource. I know, but so are CIT, and he wants the gate to open for his group members only.
Moderators IIYAMA Posted March 19, 2012 Moderators Posted March 19, 2012 He maybe created new group for his members and checked it with local account = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then I use it for members so they can use special commands without being a mod/smod/admin.
Jokeℝ1472771893 Posted May 19, 2012 Author Posted May 19, 2012 The problem is: data "Group" don't exists, only in your local cause you are using a group resource. I know, but so are CIT, and he wants the gate to open for his group members only. where i can find that resourse?
Monty Posted May 19, 2012 Posted May 19, 2012 i would have done it if you hadn't said that it was for CIT
Stanley Sathler Posted May 19, 2012 Posted May 19, 2012 Wait... do you wanna this script to put in a base for CIT Server? If yes, the CIT Server don't accept resources, only the .map file. Have you read the rules for "how to apply for a base" in CIT Forum? The resource is made by CIT team, you just must send the .map file.
Jokeℝ1472771893 Posted May 19, 2012 Author Posted May 19, 2012 Wait... do you wanna this script to put in a base for CIT Server? If yes, the CIT Server don't accept resources, only the .map file. Have you read the rules for "how to apply for a base" in CIT Forum? The resource is made by CIT team, you just must send the .map file. Yeh i know its in past now i have my own server and whan't it for my server
Stanley Sathler Posted May 19, 2012 Posted May 19, 2012 Well, if is it, the necessary functions was already posted.
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