20.03.2014, 18:08
pawn Код:
if(Taser[playerid] == 1 && weaponid == 23 && hittype == 1)
{
new string[128];
TogglePlayerControllable(hitid, false);
ApplyAnimation(hitid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("Tasered", 10000, 0, "d", hitid);
format(string, sizeof(string), "* %s has tasered %s *", GetNameEx(playerid), GetNameEx(hitid));
ProxDetector(30.0, playerid, string, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE);
return 0;
}
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)