E-mail Posted September 12, 2011 Share Posted September 12, 2011 Hi all i made this script by help JR10 and SoldSnake14 if player Kill the enamy get weapons ----39 with 2-ammo and outputChatBox + Siren if player get the weapon see outputChatBox("War_System|x[Dev-PoinT]x!",255,255,0) function xxx (ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~= source ) then giveWeapon ( killer, 39, 2, true ) local sound = playSound("sounds/PSiren.mp3") setSoundVolume(sound, 0.5) end outputChatBox(getPlayerName(killer) .." has Now a Special Weapon, watch out!", getRootElement(), 255, 255, 0) end end addEventHandler ("onPlayerWasted",getRootElement() , xxx) Link to comment
JR10 Posted September 12, 2011 Share Posted September 12, 2011 Next time tell us what happens. outputChatBox("War_System|x[Dev-PoinT]x!",root,255,255,0) function xxx (ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~= source ) then giveWeapon ( killer, 39, 2, true ) local sound = playSound("sounds/PSiren.mp3") setSoundVolume(sound, 0.5) outputChatBox(getPlayerName(killer) .." has Now a Special Weapon, watch out!", getRootElement(), 255, 255, 0) end end addEventHandler ("onPlayerWasted",getRootElement() , xxx) And for your start message, you better add it client side , onClientResourceStart. 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