SA-MP Forums Archive
Locking Gang Gang Houses - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Locking Gang Gang Houses (/showthread.php?tid=278657)



Locking Gang Gang Houses - Compton - 23.08.2011

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.


Re: Locking Gang Gang Houses - Pinguinn - 23.08.2011

Click me


Re: Locking Gang Gang Houses - dud - 23.08.2011

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


Re: Locking Gang Gang Houses - =WoR=G4M3Ov3r - 23.08.2011

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 ?


Re: Locking Gang Gang Houses - dud - 23.08.2011

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


Re: Locking Gang Gang Houses - [MWR]Blood - 23.08.2011

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.


Re: Locking Gang Gang Houses - [GTA]AmericanGangster - 23.08.2011

hi how to make a gang HQ?