Announcer menu

User Tag List

Thread: Announcer

Results 1 to 6 of 6
  1. #1
    MCdeathMC's Avatar Active Member
    Reputation
    66
    Join Date
    Aug 2008
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Announcer

    Code:
    function PvP_OnHK(player, pvictim, event)
        local vic_Name = pvictim:GetName()
        local vic_Level = pvictim:GetLevel()
            for k,v in pairs(GetPlayersInWorld()) do
            v:SendBroadcastMessage(vic_Name .. was killed by player:GetName() .. )
        end
    end
    
    RegisterServerHook(23, "PvP_OnHK")
    i always get a error saying scripts/PvP Announcer.lua:5: ')' expected near 'killed'



    Plz help will REP
    Last edited by MCdeathMC; 07-07-2010 at 12:47 PM.

    Announcer
  2. #2
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kk wait im gonna check it
    Fixed it should works now:
    Code:
    function PvP_OnHK(player, pvictim, event)
        local vic_Name = pvictim:GetName()
        local vic_Level = pvictim:GetLevel()
            for k,v in pairs(GetPlayersInWorld()) do
            v:SendBroadcastMessage("..vic_Name.."   was killed by "..plr:GetName().."  .. )
        end
    end
    
    RegisterServerHook(23, "PvP_OnHK")
    Last edited by Trle94; 07-07-2010 at 01:03 PM.


  3. #3
    MCdeathMC's Avatar Active Member
    Reputation
    66
    Join Date
    Aug 2008
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Trle94 View Post
    Kk wait im gonna check it
    Fixed it should works now:
    Code:
    function PvP_OnHK(player, pvictim, event)
        local vic_Name = pvictim:GetName()
        local vic_Level = pvictim:GetLevel()
            for k,v in pairs(GetPlayersInWorld()) do
            v:SendBroadcastMessage("..vic_Name.."   was killed by "..plr:GetName().."  .. )
        end
    end
    
    RegisterServerHook(23, "PvP_OnHK")
    now i am getting the same error just not 'killed' it is now 'was'

  4. #4
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well idk then it should be like that


  5. #5
    MCdeathMC's Avatar Active Member
    Reputation
    66
    Join Date
    Aug 2008
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i fixxed the was problem now i get this

    Code:
    function PvP_OnHK(player, pvictim, event)
        local vic_Name = pvictim:GetName()
        local vic_Level = pvictim:GetLevel()
            for k,v in pairs(GetPlayersInWorld()) do
            v:SendBroadcastMessage(vic_Name.." was killed by "..player:GetName())
        end
    end
    
    RegisterServerHook(23, "PvP_OnHK")

    now i get this error when i kill a player

  6. #6
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,503
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function PvP_OnHK(player, pvictim, event)
        local plrs = GetPlayersInWorld()
        for k, v in pairs(plrs) do
            v:SendBroadcastMessage("..pvictim:GetName().." was killed by "..player:GetName()..")
        end
    end
    
    RegisterServerHook(23, "PvP_OnHK")

Similar Threads

  1. kBlaster goes to GM Island and has an announcement
    By kBlaster in forum World of Warcraft Model Editing
    Replies: 33
    Last Post: 07-24-2007, 12:40 AM
  2. [Off topic] Snitch's announcement
    By Snitch in forum Community Chat
    Replies: 9
    Last Post: 04-13-2007, 07:26 PM
  3. Winners to be announced
    By KuRIoS in forum OC News
    Replies: 25
    Last Post: 12-30-2006, 04:07 AM
  4. [Announcement] "xenoWoW" is in production
    By suicidity in forum World of Warcraft General
    Replies: 5
    Last Post: 12-26-2006, 04:02 PM
  5. ANNOUNCING THE MMOWNED RE-PACK by Bloodofwar, Krazzee, and Dave-ead!!!
    By bloodofwar in forum World of Warcraft Model Editing
    Replies: 37
    Last Post: 11-05-2006, 03:54 PM
All times are GMT -5. The time now is 12:19 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search