||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) aC is doing recruitment, we need expirienced drivers! contact me on skype: drevenvan Our topic: http://forum.mtasa.com/viewtopic.php?f=115&t=68142
Castillo Posted January 24, 2013 Posted January 24, 2013 getPlayerWantedLevel San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted January 25, 2013 Posted January 25, 2013 dude, this is my script. The Ultimate Lua Tutorial! | MTA PHP SDK
K4stic Posted January 25, 2013 Posted January 25, 2013 (edited) agree with xXMADEXx this is not your script! Edited January 25, 2013 by Guest Giving a Fuck? Nope, That isn't in My Skill Set
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 aC is doing recruitment, we need expirienced drivers! contact me on skype: drevenvan Our topic: http://forum.mtasa.com/viewtopic.php?f=115&t=68142
Recommended Posts