SA-MP Forums Archive
Can I disable shotguns and parachutes after people exited the vehicle? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can I disable shotguns and parachutes after people exited the vehicle? (/showthread.php?tid=140309)



Can I disable shotguns and parachutes after people exited the vehicle? - RSC_Quicker - 08.04.2010

Hey, When people exited a plane or a cop car. They get a parachute or a shotgun. It's verry annoying my anticheat kicks them.
Is there something to disable that?


Re: Can I disable shotguns and parachutes after people exited the vehicle? - Thrarod - 08.04.2010

Ummm... Edit your anticheat's weapon kick part, may fix but not sure :S


Re: Can I disable shotguns and parachutes after people exited the vehicle? - RSC_Quicker - 08.04.2010

What are you talking man?
I didn't ask that. I already changed my anti cheat but I just wanted to know if there were another easier way.
I suspected that sa-mp could make something like a disable fuction for it. But they don't I see.


Re: Can I disable shotguns and parachutes after people exited the vehicle? - Thrarod - 08.04.2010

Then you cant, it seems your anticheat kick weps given else than ammunations and GivePlayerWeapon so no way to disable!


Re: Can I disable shotguns and parachutes after people exited the vehicle? - dice7 - 08.04.2010

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER)
    {
        if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
        {
            GivePlayerWeapon(playerid, 25, -5);
        }
    }
    return 1;
}



Re: Can I disable shotguns and parachutes after people exited the vehicle? - RSC_Quicker - 09.04.2010

Yea thats an option. Does the weapon get removed when it got -5?
Because my anticheat will detect it if it doesn't get removed.

Btw: My detector is working with GetPlayerWeaponData


Re: Can I disable shotguns and parachutes after people exited the vehicle? - RSC_Quicker - 09.04.2010

Quote:
Originally Posted by Thrarod
Then you cant, it seems your anticheat kick weps given else than ammunations and GivePlayerWeapon so no way to disable!
Ofcourse there is a way. I just have to edit somethings in my detector settings.
But I have put it at the good point. I already saw you cannot help me anymore. So thanks for attempt to help me.

I already solved this problem!