x[Dev-PoinT]x Posted July 18, 2011 Share Posted July 18, 2011 The Bug is 1-gameSpeed become very slow on i hit The Plyaer Head 2-how to add outButChatBox HeadShot! addEventHandler ("onClientPlayerDamage",getRootElement(), function (attacker,weapon,bodypart) if bodypart == 9 then if weapon == 24 or weapon == 31 or weapon == 34 then local x,y,z = getElementPosition(source) local sound = playSound ("sounds/headshot.mp3",false) setSoundVolume (sound,4) setGameSpeed (1.1) fxAddBlood (x,y,z+0.8,0,0,0,500) setPedHeadless (source,true) setElementHealth (getLocalPlayer(),0) end end end) outputChatBox("HeadShot_x[Dev-PoinT]x",255,255,0) Link to comment
Aibo Posted July 18, 2011 Share Posted July 18, 2011 1. you'll have set gamespeed back to normal using timer/respawn event or something else. 2. you have outputChatBox already in your script. simplest thing you can do is copy it in your event. personal note: if you can't do anything without help (even edit few lines in some script you copied somewhere), can't type function name properly — scripting is not your thing. not now, anyway. Link to comment
TAPL Posted July 19, 2011 Share Posted July 19, 2011 you open double topic (LoL) and we can't understand what you want do (LoL) you can't find your old topic or what? that was the last post in your old topic messages = { "هههه مسوي برو ق1", "لول نوب انت؟؟", "خخخخ انت ولعبك المنوب", "ههه انا لله وانا اليه راجعون" } outputChatBox("Wasted_System_v2.0",255,255,0) outputChatBox("AnTi-Fist_v1.0",0,255,255) function wasted (killer, weapon, bodypart) outputChatBox ( messages[math.random(1,#messages)], 255, 0, 0 ) local sound = playSound("sounds/wasted.mp3") setSoundVolume(sound, 0.5) end addEventHandler ("onClientPlayerWasted", getLocalPlayer(), wasted) addEventHandler ("onClientPlayerDamage", root, function (attacker,weapon,bodypart) if weapon == 0 then cancelEvent() elseif weapon == 24 or weapon == 31 or weapon == 34 then if bodypart == 9 then local x,y,z = getElementPosition(source) local sound = playSound ("sounds/headshot.mp3",false) setSoundVolume (sound,4) setGameSpeed (0.25) setCameraTarget (source) fxAddBlood (x,y,z+0.8,0,0,0,500) setPedHeadless (source,true) setElementHealth (source,0) setTimer (setGameSpeed,2000,1,1) setTimer (setPedHeadless,2000,1,source,false) end end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now