17.02.2008, 09:39
Quote:
Originally Posted by azaxyo
Can someone tell me how to fix the peds that are deleted?like on BS,PIZZA
|
Anyway, nice script
Originally Posted by azaxyo
Can someone tell me how to fix the peds that are deleted?like on BS,PIZZA
|
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;
}
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;
}
}
}
Originally Posted by [DK
AzaxYo ]
Can someone tell me how to fix the peds that are deleted?like on BS,PIZZA |
DisableInteriorEnterExits();