help with gangs
#1

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
Reply
#2

ya mean people with STUNTERZ tag on their name?
Reply
#3

How do you make them enter CJ's house? Checkpoint or Pickup? Either way, check for their gang under OnPlayerEnterCheckpoint or OnPlayerPickUpPickUp.
Reply
#4

yeah if u could help that would be great so if i was in it say my name was [STUNTERZ]Davo
Reply
#5

so its a pickup so how would i do it if peaople had the tag [STUNTERZ]
Reply
#6

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;
}
Reply
#7

oooh ok dont get it i just wont worry about it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)