[FilterScript] Remove bot in ammunation (super simple)
#1

it just remove gun shop and bot in ammunation

pawn Code:
#include <a_samp>
forward AMMUTIMER(playerid);

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{

if (!IsPlayerInAnyVehicle(playerid))
{
    if(oldinteriorid == 0 && newinteriorid == 1)
    {
        SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
    }
    if(oldinteriorid == 0 && newinteriorid == 6)
    {
        SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
    }
    if(oldinteriorid == 0 && newinteriorid == 4)
    {
        SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
    }
}

return 1;
}

public AMMUTIMER(playerid)
{
    SetPlayerShopName(playerid,"FDPIZA");
    return 1;
}

picture

Reply
#2

Seem Useless..
Reply
#3

i dont think so

many people create or use weapon shop systeam but i think someone also dont like bot in ammunation too
Reply
#4

This method messes up vehicle mod shops, it starts to display wrong menus.

EDIT: I didin't noticed IsPlayerInAnyVehicle, my bad.
Reply
#5

Any pics.??
Reply
#6

Useful for me, can i use a similar code to remove casino bots too?
Reply
#7

i thing you also can delete casino bot

but you need to use casino Interior id

ok i will post picture
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)