02.11.2010, 12:35
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;
}