help with gangs - 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: help with gangs (
/showthread.php?tid=153483)
help with gangs -
[asg]davo - 09.06.2010
ok i have numeros gangs in my server that im building and could anyone plz tell me how to make it so only a certain type of gang can go into a certain building
so say i was in a gang called STUNTERZ and i wanted only people in that gang to be able go into say CJS house
Re: help with gangs -
WardenCS - 09.06.2010
ya mean people with STUNTERZ tag on their name?
Re: help with gangs -
DJDhan - 09.06.2010
How do you make them enter CJ's house? Checkpoint or Pickup? Either way, check for their gang under OnPlayerEnterCheckpoint or OnPlayerPickUpPickUp.
Re: help with gangs -
[asg]davo - 09.06.2010
yeah if u could help that would be great so if i was in it say my name was [STUNTERZ]Davo
Re: help with gangs -
[asg]davo - 09.06.2010
so its a pickup so how would i do it if peaople had the tag [STUNTERZ]
Re: help with gangs -
DJDhan - 09.06.2010
How do you store the gangs? Like you must be saving the gang the players are in currently, aren't you? If it is a Pickup, then show the code under OnPlayerPickUpPickUp where you put them in the interior of CJ's house. and I'll edit it for you.
Basically
You must be having something like :
Код:
new CJpickup;
CJpickup=CreatePickup(..................);
Do something like this:
Код:
OnPlayerPickUpPickUp(playerid,pickupid)
{
if(pickupid == CJpickup)
{
if(gang[playerid]== STUNTERZ)
{
SetPlayerInterior(playerid,interiorid);
}
}
else return SendClientMessage(playerid,0xffffffaa,"You need to be a part of the STUNTERZ gang to get in");
return 1;
}
Re: help with gangs -
[asg]davo - 09.06.2010
oooh ok dont get it i just wont worry about it