Results 1 to 10 of 14

Thread: Round Restart time to loop and hunters killed when go hunters when he is only zom

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Nov 2018
    Posts
    22
    Thanks
    0
    Thanked 3 Times in 3 Posts
    And someone has a mute/unmute command, coz 'im tired to kick shits who spams...

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by Adrien View Post
    And someone has a mute/unmute command, coz 'im tired to kick shits who spams...
    PHP Code:
    CodeCallBack_PlayerCommand(args)
    {

    /*
    player connected:

    if (!isDefined(self.isMute))
       self.isMute = false;
    */

    if (args[0] == "say" || args[0] == "say_team"// + isDefined args[1] + more checks
    {
         if (
    self.isMute)
         {
             
    self iprintlnbold("you muted :(");
             return;
         }
         
         if (
    args[1] == "!mute")
         {
              
    player findPlayer_byStr(args[2]);
              if (
    isDefined(player))
                   
    player.isMute true;
         }
         if (
    args[1] == "!unmute")
         {
              
    player findPlayer_byStr(args[2]);
              if (
    isDefined(player))
                   
    player.isMute false;
         }
    }


    general example, need to add:
    - Need check for some null args array
    - Mute stored in the player's structure (reconnection will break "mute"): need remake for level. (for map) or db (for time and more...)
    - Mute no work for quick messages (V1 V2 V3)
    - well, I forgot something else
    Last edited by maxdamage99; 24th June 2019 at 07:50.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

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