Mystery weapon appears
#1

I don't know if this is a bug, or an error on my part. This did not occur in previous versions of samp, it has started happening with 0.3b

Players are getting autobanned for heat seeking missile launcher ( weapon ID 36 ) detection. I have found it occurs when they enter a vehicle, and have deduced that it may be my anti drivershooting script.

under OnPlayerStateChange
pawn Code:
if(newstate == PLAYER_STATE_DRIVER)
     {
        new newcar = GetPlayerVehicleID(playerid);

        new gun, ammo;
        GetPlayerWeaponData(playerid,4,gun,ammo);
        if(gun == 29)
        {
            GivePlayerWeapon(playerid,29,-ammo);
            PutPlayerInVehicle(playerid,newcar,0);
        }
    }
and this is the script that autobans them ( simplified for this example )

pawn Code:
for (new j=12; j>0; j--)
{
GetPlayerWeaponData(playerid,j,weapon[j],ammo);
if(weapon[j] == 36)
{
    ... ban script

}
if anyone has any idea why this is happenning I would be grateful. Similarly if anyone knows a different and perhaps more efficient way to stop drivershooting.
Reply


Messages In This Thread
Mystery weapon appears - by Rachael - 29.08.2010, 03:23
Re: Mystery weapon appears - by Mark_Weston - 29.08.2010, 03:41
Re: Mystery weapon appears - by Venturas - 29.08.2010, 03:50
Re: Mystery weapon appears - by Rachael - 29.08.2010, 03:51
Re: Mystery weapon appears - by CracK - 29.08.2010, 04:01
Re: Mystery weapon appears - by Finn - 29.08.2010, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)