Fix this thing
#1

When player is on bike the animation not stops.I need to fix it.

pawn Code:
#include <a_samp>

forward AntiDB(playerid);

public OnFilterScriptInit()
{
    print("- Anti Driveby -");
    print("- LOADED -");
    SetTimer("AntiDB",100,true);
    return 1;
}

public AntiDB(playerid)
{
    if (GetPlayerWeapon(playerid) == 28 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
    }
    if (GetPlayerWeapon(playerid) == 29 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
    }
    if (GetPlayerWeapon(playerid) == 32 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
    }
    return 1;
}
Reply


Messages In This Thread
Fix this thing - by ZamaXor - 02.11.2010, 12:35
Re: Fix this thing - by OldDirtyBastard - 02.11.2010, 12:46
Re: Fix this thing - by ZamaXor - 02.11.2010, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)