[HELP] Taser - 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)
+--- Thread: [HELP] Taser (
/showthread.php?tid=332163)
[HELP] Taser -
V4at - 07.04.2012
Where can be problem, when a player is lying and he is not up, although timers are.
Code:
if(newkeys & KEY_FIRE)
{
if(HaveTaser[playerid] == 1)
{
ApplyAnimation(playerid,"KNIFE","knife_3",4.1,0,1,1,0,0,1);
SetTimerEx("TimerClear",2000,false,"d",playerid);
new victimid = GetClosestPlayer(playerid);
if(IsPlayerConnected(victimid))
{
if(GetDistanceBetweenPlayers(playerid,victimid) < 2)
{
new Float:health;
GetPlayerHealth(victimid, health);
SetPlayerHealth(victimid, health - 5.0);
SetTimerEx("TimerFall",300,false,"d",victimid);
return 1;
}
}
}
}
return 1;
}
public TimerClear(playerid)
{
ClearAnimations(playerid,1);
}
public TimerFall(playerid)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
Re : [HELP] Taser -
V4at - 07.04.2012
Maybe can be problem with :
Code:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
because I change this.
Re : [HELP] Taser -
V4at - 07.04.2012
Anyone?
Re: [HELP] Taser -
Shabi RoxX - 07.04.2012
[QUOTE=V4at;1781673]Where can be problem, when a player is lying and he is not up, although timers are.
/QUOTE]
I can't understand this ?