o meu n tem npc nem setinha :X
exemplo de como desativar os npcs:
pawn Код:
//
forward AMMUTIMER(playerid);
new ABCDEF[MAX_PLAYERS] = 0;
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if (IsPlayerInAnyVehicle(playerid))
{
return 1;
}
if(oldinteriorid == 0 && newinteriorid == 1)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 1;
}
if(oldinteriorid == 0 && newinteriorid == 6)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 1;
}
if(oldinteriorid == 0 && newinteriorid == 4)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 1;
}
if(oldinteriorid == 0 && newinteriorid == 10)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 2;
}
if(oldinteriorid == 0 && newinteriorid == 9)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 2;
}
if(oldinteriorid == 0 && newinteriorid == 5)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 2;
}
if(oldinteriorid == 0 && newinteriorid == 17)
{
SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
ABCDEF[playerid] = 2;
}
}
return 1;
}
public AMMUTIMER(playerid)
{
if(ABCDEF[playerid] == 1)
{
SetPlayerShopName(playerid,"FDPIZA");
ABCDEF[playerid] = 0;
return 1;
}
else if(ABCDEF[playerid] == 2)
{
SetPlayerShopName(playerid,"AMMUN3");
ABCDEF[playerid] = 0;
return 1;
}
}
para tirar as setinhas use:
pawn Код:
//
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}