Jump to content

how can Fix my Script PLease :)


E-mail

Recommended Posts

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) 

:mrgreen:

Link to comment

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...