Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
domidom - 17.02.2008
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
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
bzuco - 17.02.2008
if you disable interior exits, special function like ammunation,pizza donґt work, you should script this functions
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Dark_Kostas - 17.02.2008
This mean?Help me with some directions.Must i edit the inc?
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Homerman - 17.02.2008
**********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
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
bzuco - 17.02.2008
uf i think it is imposiblle to fix it
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
snipe69 - 17.02.2008
wow nice one men
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
s4kura0152 - 24.03.2008
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
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
sebihunter - 24.03.2008
Really nice man
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
P1nd3r - 24.03.2008
I can't believe I only just spotted this, it's excellent.
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Magor - 24.03.2008
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.
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Bzzzz - 20.05.2009
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
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Abernethy - 20.05.2009
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.
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Paolo Saldivar - 20.05.2009
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.
Re: [INC] Bzucoґs interior script - Add easily shops/pubs etc. -
Klutty - 20.05.2009
Really nice inc!
Need a mirror?