Results 1 to 6 of 6

Thread: Bold Message Script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    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);

    ^ this code up here, you must rename it to _saybold.gsc and place it on maps\mp\gametypes\ folder.
    Then you go to sd.gsc or dm.gsc (the gametype u want it to ur server) and add this line on start gametype.
    PHP Code:
    thread maps\mp\gametypes\_saybold::main(); 
    When you're ingame , do /rcon login urrconhere then /rcon saybold test
    Let me know if worked.

  2. The Following User Says Thank You to suck000 For This Useful Post:

    klendi11 (23rd July 2016)

Tags for this Thread

Posting Permissions

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