Thread: Admin say!

Results 1 to 9 of 9
  1. #1
    GenuineASSAS1N's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep

    Cool Admin say!

    Simple script i wrote to type messages in the typewriter style while ingame.
    Requires console access.
    To use it, you need to type in the console
    Code:
    set mod_text "Your message here"
    Once you have set the text, type in the console
    Code:
    adminsay
    It will say Unknown Command, but it will show your message to every player ingame.

    Thread the following code inside onPlayerSpawned()
    Code:
    adminMessages()
    {
    	self endon("disconnect");
    	self endon("death");
    	while(1)
    	{
    		self notifyOnPlayerCommand("adminmessage", "adminsay");
    		self waittill("adminmessage");
    		foreach( player in level.players )
                 {
                     message = getDvar("mod_text", "Set A Message!");
    			     player thread maps\mp\gametypes\_hud_message::hintMessage(message);
                 }
    	}
    }
    All credits go to me.
    Enjoy!
    Last edited by GenuineASSAS1N; 03-29-2011 at 01:29 PM.

  2. #2
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic
    this is not a admin say, but a announcment

  3. #3
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    stolen from Alpha XL15 Admin Function ?!

  4. #4
    Jasperdepasper's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    C:\MPGH<3\Jasperdepasper™
    Posts
    234
    Reputation
    17
    Thanks
    150
    My Mood
    Fine
    Quote Originally Posted by YuDi21 View Post
    stolen from Alpha XL15 Admin Function ?!
    I think so
    Jasperdepasper™
    MPGH<3


    Code:
          _                              _                                      
         |M|                            | |                                     
         |P| __ _ ___ _ __   ___ _ __ __| | ___ _ __   __ _ ___ _ __   ___ _ __ 
     _   |G|/ _` / __| '_ \ / _ \ '__/ _` |/ _ \ '_ \ / _` / __| '_ \ / _ \ '__|
    |☺|__|H| (_| \__ \ |_) |  __/ | | (_| |  __/ |_) | (_| \__ \ |_) |  __/ |   
     \MPGH/ \__,_|___/ .__/ \___|_|  \__,_|\___| .__/ \__,_|___/ .__/ \___|_|©  
                     | |                       | |             | |              
                     |_|                       |_|             |_|
    Code:
     __  __ _____   _____ _    _ 
    |Ja\/sp|erdep\ /asper|!|  |!|
    |M\☺☺/M|M|__)☺|L|  __|M|__|M|
    |P|\/|P|P LOL/|O| |!L|P ☺☺ P|
    |G|  |G|G|    |L|__|O|G|  |G|
    |H|  |H|H|     \MPGHL|H|  |H

  5. #5
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    Hmm Give Credits you Choob

  6. #6
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,090
    My Mood
    Angelic
    Quote Originally Posted by GenuineASSAS1N View Post
    All credits go to me.
    Enjoy!
    don't think he is gonna
    I love it when people keep their agreements /sarcasm ftw

  7. #7
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic
    GenuineASSAS1N newbie, u cant still scripts from other peoples

  8. #8
    GenuineASSAS1N's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    Quote Originally Posted by sdm View Post
    GenuineASSAS1N newbie, u cant still scripts from other peoples
    I didn't "still" it, i wrote it all myself.

  9. #9
    pilatie's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    MPGH
    Posts
    95
    Reputation
    10
    Thanks
    8
    My Mood
    Amazed
    How the hell this works o.o