Thread Rating:
  • 26 Vote(s) - 4.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release ProMod Plugin
Oh sorry missed that thnx for the help Smile
Reply

PHP Code:
using System;
using System.Collections.Generic;
using Addon;

namespace 
promod_league
{
    public class 
esl CPlugin
    
{
        private  List<
stringcurclients;

        private 
bool isLive;
        
        private 
bool isESLAdmin(string xuid)
        {
            return (
GetServerCFG("ESLAdmin"xuid"") == "1");
        }

        private 
void clientlist()
        {
            List<
ServerClientclients GetClients();
            foreach (
ServerClient client in clients)
            {
                
curclients.Add(client.XUID);
            }
        }
        private 
void cleanclientlist()
        {
            
curclients.Clear();
        }

        private 
void CheckConnectingClient(ServerClient Client)
        {
            if(!
curclients.Contains(Client.XUID))
                
ServerCommand("kick " Client.ClientNum);
        }

        public 
void CheckMessage(string messageServerClient Client)
        {
            if (
message.StartsWith("!live") && isESLAdmin(Client.XUID))
            {
                
isLive true;
            
clientlist();
                
ServerSay("^1Match is now Live! \n ^2Connection Bloc is enabled"true);
            }
            if (
message.StartsWith("!stop") && isESLAdmin(Client.XUID))
            {
                
isLive false;
                
cleanclientlist();
                
ServerSay("^1Match is not live! \n ^2Connection Block is now disabled"true);
            }
        }

        public 
void blockConnections(ServerClient Client)
        {
            
CheckConnectingClient(Client);
        }
    }

I dont know if it works, i couldnt test it, it should block the connection of players who are not part of the match if an admin set the game to live. I hope you can use it Wink
Bob.
Reply

Can anyone tell me what command to add to the dvars to preset a filmtweak?
Reply

(02-09-2012, 12:16)zlol Wrote: Can anyone tell me what command to add to the dvars to preset a filmtweak?

You can't create custom presets.
[Image: azuw.jpg]
Reply

(02-09-2012, 12:51)zxz0O0 Wrote:
(02-09-2012, 12:16)zlol Wrote: Can anyone tell me what command to add to the dvars to preset a filmtweak?

You can't create custom presets.

Not a custom one but a preset one as ive tried adding ftweakpreset "1" to the dvars but it didnt work
Reply

(02-09-2012, 13:21)zlol Wrote:
(02-09-2012, 12:51)zxz0O0 Wrote:
(02-09-2012, 12:16)zlol Wrote: Can anyone tell me what command to add to the dvars to preset a filmtweak?

You can't create custom presets.

Not a custom one but a preset one as ive tried adding ftweakpreset "1" to the dvars but it didnt work
Ah that's what you mean. Do you want to add it to forceClientDvars? Ftweakpreset is a chat command, but you can only add dvars. I can give you the dvars of a filmtweakpreset.
[Image: azuw.jpg]
Reply

(02-09-2012, 14:52)zxz0O0 Wrote: at you mean. Do you want to add it to forceClientDvars? Ftweakpreset is a chat command, but you can only add dvars. I can give you the dvars of a filmtweakpreset.

Yea wanted to add it to forceclientdvars, would be nice if you could provide dvars needed to do it

Reply

(02-09-2012, 15:29)zlol Wrote:
(02-09-2012, 14:52)zxz0O0 Wrote: at you mean. Do you want to add it to forceClientDvars? Ftweakpreset is a chat command, but you can only add dvars. I can give you the dvars of a filmtweakpreset.

Yea wanted to add it to forceclientdvars, would be nice if you could provide dvars needed to do it

Which fimtweakpreset? (1-5)
[Image: azuw.jpg]
Reply

(02-09-2012, 18:13)zxz0O0 Wrote:
(02-09-2012, 15:29)zlol Wrote:
(02-09-2012, 14:52)zxz0O0 Wrote: at you mean. Do you want to add it to forceClientDvars? Ftweakpreset is a chat command, but you can only add dvars. I can give you the dvars of a filmtweakpreset.

Yea wanted to add it to forceclientdvars, would be nice if you could provide dvars needed to do it

Which fimtweakpreset? (1-5)

1

Reply

ftweakpreset 1:
r_filmtweakdarktint "0.65 0.7 0.8",r_filmtweakcontrast "1.3",r_filmtweakbrightness "0.15",r_filmtweakdesaturation "0",r_filmusetweaks "1",r_filmtweaklighttint "1.8 1.8 1.8",r_filmtweakenable "1"

PS: I will upload v1.7 as soon as editing works again.
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow [Release] Plugin ReservedSlot v1.3 frst_ 1 3,694 11-08-2018, 19:17
Last Post: frst_
Tongue [Release] MW3 Shop plugin Dude 56 37,529 03-25-2018, 05:18
Last Post: [email protected]
  [Release] Permission plugin Pozzuh 202 118,331 05-01-2017, 15:41
Last Post: W4R||The Hyper
  [Release] FIXED SPEED PLUGIN hillbilly 2 4,065 06-02-2016, 20:23
Last Post: clacki
  [Release] Bots Plugin For Users Casper 22 33,313 08-22-2015, 17:45
Last Post: SnapBacks
  [Release] God Plugin v5.0 [Ingame Rcon Tool] OzonE 464 240,047 06-27-2015, 15:38
Last Post: bluedot
  [Release] Anti Hardscope Plugin 8q4s8 26 20,751 06-20-2015, 22:44
Last Post: urj88419
  [Release] [Discontinued] Speed Plugin Pozzuh 164 86,999 10-06-2014, 12:56
Last Post: Nekochan
  [help]how create a ping plugin clacki 3 3,613 09-13-2014, 01:23
Last Post: clacki
  Help How Compile Mw3 Plugin By VB 2010 clacki 3 3,972 06-11-2014, 11:55
Last Post: SgtLegend

Forum Jump:


Users browsing this thread:
6 Guest(s)

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