[Include] [INC] Bzucoґs interior script - Add easily shops/pubs etc.
#21

Quote:
Originally Posted by azaxyo
Can someone tell me how to fix the peds that are deleted?like on BS,PIZZA
Thats a problem, when you go directly into an interior, the 'peds' (shop worked) and checkpoints dont always appear. Im not aware of a way to fix it.
Anyway, nice script
Reply
#22

if you disable interior exits, special function like ammunation,pizza donґt work, you should script this functions
Reply
#23

This mean?Help me with some directions.Must i edit the inc?
Reply
#24

**********SK**********
Je to super bzuco si kбpo Fakt skvelэ include ale nebudem to radљej pouћнvať, radљej pouћнvam vlastnй vecičky
**********EN**********
Itґs very nice bzuco, you are capo Really beautiful include but i donґt use it any time... I like my scripts
Reply
#25

uf i think it is imposiblle to fix it
Reply
#26

wow nice one men
Reply
#27

Hey i need help!

I would like if the man in the white arrow, then a message that comes type / enter.

How can I get that?

And sry for my bad english
Reply
#28

Really nice man
Reply
#29

I can't believe I only just spotted this, it's excellent.
Reply
#30

Buzco, i have seen a lot of your previous scripts. Your work is wasting of hardware.
Original code:

pawn Код:
forward IsInThisInteriorPickup(id);
public IsInThisInteriorPickup(id)
{
  new value;
  for(new shopid;shopid<MAX_SHOP;shopid++)
  {
    if(shopdata[shopid][used]==1)
    {
       if(shopdata[shopid][shoptype]==id)
       {
         value = 1;
       }
    }
  }
  return value;
}

forward OnPlayerEnterShop(playerid);
public OnPlayerEnterShop(playerid)
{
  for(new shopid;shopid<MAX_SHOP;shopid++)
  {
    if(shopdata[shopid][used] == 1)
    {
       if (PlayerToPointBint(3.0, playerid,shopdata[shopid][enterX],shopdata[shopid][enterY],shopdata[shopid][enterZ]))
       {
         SetPlayerInterior(playerid,shopdata[shopid][interior]);
         SetPlayerPos(playerid,shopdata[shopid][exitX],shopdata[shopid][exitY],shopdata[shopid][exitZ]);
         SetPlayerVirtualWorld(playerid,shopid+1);
       }
    }
  }
  return 1;
}
My edit:

pawn Код:
IsInThisInteriorPickup(id)
{
  for(new shopid; shopid < MAX_SHOP; shopid++)
  {
    if(shopdata[shopid][used] == 1 && shopdata[shopid][shoptype] == id) return 1;
  }
  return 0;
}

OnPlayerEnterShop(playerid)
{
  for(new shopid; shopid < MAX_SHOP; shopid++)
  {
    if(shopdata[shopid][used] == 1 && PlayerToPointBint(3.0, playerid,shopdata[shopid][enterX],shopdata[shopid][enterY],shopdata[shopid][enterZ]))
    {
       SetPlayerInterior(playerid,shopdata[shopid][interior]);
       SetPlayerPos(playerid,shopdata[shopid][exitX],shopdata[shopid][exitY],shopdata[shopid][exitZ]);
       SetPlayerVirtualWorld(playerid,shopid+1);
       break;
    }
  }
}
Your code is uselessly complicated. Use less arrays, use "public" only when it is needed and use "break".

EDIT: This include doesn't require any "public" function.
Reply
#31

add to ongamemodeinit:

AddShop(type,Float,Float:y,Float:z);

where type is for wxample BINT_RCZERO, x,y,z are coordinates for entry point
Reply
#32

Quote:
Originally Posted by [DK
AzaxYo ]
Can someone tell me how to fix the peds that are deleted?like on BS,PIZZA
That's
Код:
DisableInteriorEnterExits();
you can't have them with the Computers serving the food.
Reply
#33

Ok, I found Ongamemodeint. After that Wher i need to add the second example?? If i add it near Ongamemodeit it give me eroor. Pls help me, I'm noob.
Reply
#34

Really nice inc!

Need a mirror?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)