SA-MP Forums Archive
[FilterScript] Remove bot in ammunation (super simple) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Remove bot in ammunation (super simple) (/showthread.php?tid=544953)



Remove bot in ammunation (super simple) - ThunderX - 05.11.2014

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




Re: Remove bot in ammunation (super simple) - AzaMx - 05.11.2014

Seem Useless..


Re: Remove bot in ammunation (super simple) - ThunderX - 05.11.2014

i dont think so

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


Re: Remove bot in ammunation (super simple) - T-N-Z - 05.11.2014

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

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


Re: Remove bot in ammunation (super simple) - BlueFire_ - 05.11.2014

Any pics.??


Re: Remove bot in ammunation (super simple) - Arastair - 05.11.2014

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


Re: Remove bot in ammunation (super simple) - ThunderX - 05.11.2014

i thing you also can delete casino bot

but you need to use casino Interior id

ok i will post picture