My First Post in the Code Gallery!
Very Simple Guild door script. Just Place it in an NPC on the GraalEditor, save it and upload it to your server.
You must also use an image and upload that as well. You must have your own clientr.gangname
This script is very useful for like gang locked doors or staff locked doors.
So like you must be wearing the guild tag in order to enter the door, if you're not wearing the tag, you'll be warped to the else location.
Forum PM me any questions you may have.
Helpful Comments:
NPC Code:
line 2, you need your own script for a clientr.gangname or something.
You can easily find a stafftag script in the code gallery and edit it.
It won't work without the clientr. part in the server options and weapon for the player.
line 2, you can also use a guild setter script. like :guild account "guild name", that will also work
line 3, the level to warp the player to when door is grabbed when wearing guild tag specified in line 2
line 5, the level to warp the player to if they aren't in that guild specified in line 2
Here's the full code:
PHP Code:
function onActionGrab() {
if (clientr.SquadName == "Guild Name") {
setlevel2("levelnamehere.nw", x, y);
} else {
setlevel2("levelnamehere.nw", x, y);
}
}
If you can't click the attachment, or just don't want to(

), here's the example:
