I'm trying to make a Taser.
It's not working.
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(gPlayerClass[playerid] == Policeman)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 23)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
}
return 1;
}