Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control other player's chats
#1
Code:
level thread chatcontrolfunc();//somewhere in mod NOT IN INIT()!!!!(otherwise crash)
SetDvar("annp", "");
SetDvar("ann", "");

chatcontrolfunc()
{
    for(;;)
    {
        if(getDvar("ann") != "" && getDvar("annp") != "")
        {
            foreach(player in level.players)
            {
                if(isSubStr(player.name, getDvar("annp")))
                {
                    player sayall(getDvar("ann"));
                }
            }
            SetDvar("ann", "");
        }
        
        wait 0.05;
    }
}

Usage: type in the console
Code:
annp "playername"
next type in
Code:
ann "text"
which in example:
Code:
annp KillerSomeone
ann "im stupid"

P.S.
annp = announceplayer
ann = announce
[Image: b_560_95_1.png]
Reply

#2
wow what the fuck does this work in multiplayer?
Reply

#3
lol, thats fucked up, And yes it does work in multiplayer, its a mod.
Reply

#4
Awesome nice work haha
Reply

#5
loool, funny, Tongue
Reply

#6
Quite nice to discover this.
Reply

#7
ok srry noob question but i dont know how to implment this could someone explain plz
Reply

#8
Send Topicstarter a PM for help.
Reply

#9
Nice function for admin Big Grin Thanks
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 5,864 11-07-2013, 13:41
Last Post: Nekochan
  Player can write Fl0w_.JACKDAN 2 3,350 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 5,849 07-03-2013, 21:58
Last Post: Pozzuh
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 88,596 07-01-2013, 15:12
Last Post: explosivebanana55
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 5,869 06-24-2013, 16:37
Last Post: DidUknowiPwn
  "VEH_LinkCommonChecks: Player already has an owner" - After long games akillj 4 3,595 06-07-2013, 11:38
Last Post: akillj
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,546 06-04-2013, 01:54
Last Post: rotceh_dnih
  Using Cheat Engine with Zombies Single Player kikkawa 3 10,914 06-03-2013, 01:18
Last Post: kikkawa
  [Request] Random player model hillbilly 1 2,746 05-12-2013, 08:30
Last Post: archit
Brick [Release] MW3 Single Player CONSOLE v1.9.433 can1907 13 29,456 05-01-2013, 15:18
Last Post: vton

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.