||BuLLeT|| Posted January 24, 2013 Posted January 24, 2013 Hey, its me again after long time, i got problem with tazer system, idk how to add it to taze only when player have stars,and i want that when cop taze crim with this, criminal not to loose heal! server.lua local time = 1 addEvent("onShot", true) addEventHandler("onShot", root, function(hitElement) setElementFrozen(hitElement, true) setPedAnimation(hitElement, "ped", "KO_shot_stom") setTimer(setElementFrozen, time*8000, 1, hitElement, false) setTimer(setPedAnimation, time*8000, 1, hitElement) end) client.lua local eTeams = { ["Police"] = true, ["Swat"] = true, ["FBI"] = true, ["Military"] = true } addEventHandler("onClientPlayerWeaponFire", root, function(weapon, _, _, _, _, _, hitElement) if (hitElement) and (getElementType(hitElement) == "player") and (weapon == 23) then local Team = getPlayerTeam(source) local TeamName = Team and getTeamName(Team) or "" if (eTeams[TeamName]) then outputChatBox("You have tazed "..getPlayerName(hitElement), 255, 0, 0) triggerServerEvent("onShot", localPlayer, hitElement) end end end)
K4stic Posted January 25, 2013 Posted January 25, 2013 (edited) agree with xXMADEXx this is not your script! Edited January 25, 2013 by Guest
TAPL Posted January 25, 2013 Posted January 25, 2013 https://forum.multitheftauto.com/viewtopic.php?f=91&t=51954
||BuLLeT|| Posted January 25, 2013 Author Posted January 25, 2013 i said its mine? i didnt say its mine, i know its yours and its nice, i just added some edit
Recommended Posts