Locking Gang Gang Houses
#1

Hello, Well Im trying to make a /lockhq /unlockhq for gangs on my server, I want that only the member of the gang/set will be able to open his HQ, if a HQ will be locked, noone will be able to enter the hq.

If any codes needed from my script, tell, i will post them here so it will be understandable for yall.
Reply
#2

Click me
Reply
#3

Code:
if(PlayerInfo[playerid][gang] == 5 || PlayerInfo[playerid][pLeader] == 5 )
	            {
	                if(KeyDoor[gang] == 0)
	                {
	                    KeyDoor[gang] = 1;

	                }
	                else if(KeyDoor[gang] == 1)
	                {
	                    KeyDoor[gang] = 0;

					}
it shoud look somethink like this
Reply
#4

Quote:
Originally Posted by dud
View Post
Code:
if(PlayerInfo[playerid][gang] == 5 || PlayerInfo[playerid][pLeader] == 5 )
	            {
	                if(KeyDoor[gang] == 0)
	                {
	                    KeyDoor[gang] = 1;

	                }
	                else if(KeyDoor[gang] == 1)
	                {
	                    KeyDoor[gang] = 0;

					}
it shoud look somethink like this
And what if he doesn't have pLeader, gang and KeyDoor, in enum ?
Reply
#5

i just give him example how shoud look...probably he will know how to make other thinks...
Reply
#6

Quote:
Originally Posted by BATAD
View Post
And what if he doesn't have pLeader, gang and KeyDoor, in enum ?
He might change the pvars names.
Reply
#7

hi how to make a gang HQ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)