Results 1 to 10 of 12

Thread: iPrintBold or sayallcenter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    _saybold.gsc

    PHP Code:
    main()
    {
        
    setcvar("saybold""");
        while(
    1)
        {
            
    wait 0.05;
            
    _p getentarray("player""classname");

            if (
    getcvar("saybold") != "")
            {
                for (
    0_p.sizei++)
                {
                    if (
    getcvarint("saybold") == _p[igetEntityNumber())
                        
    _p[ithread saybold();
                }
                
    setcvar("saybold""");
            }
        }
    }

    saybold()
    {
        
    msg  getcvar("saybold");
        
    setcvar("saybold""");

        
    players getentarray("player""classname");
        for(
    0players.sizei++)            
            
    players[iplayLocalSound("ctf_touchown");    
        
    iprintlnbold(msg);

    Then in your gametype.gsc in Callback_StartGameType() add thread maps\mp\gametypes\_saybold::main();

    And simply type /rcon saybold (text)

    I dont test it so idk if its work

  2. The Following 2 Users Say Thank You to thOuMta For This Useful Post:

    kung foo man (24th March 2016),suck000 (23rd March 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •