Thread Rating:
  • 7 Vote(s) - 4.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Semi hardcore 1.1 beta (Killcam on and ff off)
#21
(04-09-2012, 10:23)OzonE Wrote: just add this code on the Hexman's Source , and Compile It , No big deal.

Thats right? Undecided

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


namespace plugin_test
{

    public class plugin_test : CPlugin
        }
        public override void OnMapChange()
                 servercommand("fast_restart");
        }
        public override void OnFastRestart()
        {
            hardcore();
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
            SetClientDvar(Client.ClientNum, "g_hardcore \"1\"");
            SetClientDvar(Client.ClientNum, "cg_drawCrosshair \"0\"");
            SetClientDvar(Client.ClientNum, "cg_scoreboardPingText \"1\"");
        }
        public void hardcore()
        {
            foreach (ServerClient client in GetClients())
            {
                SetClientDvar(client.ClientNum, "g_hardcore \"1\"");
                SetClientDvar(client.ClientNum, "cg_drawCrosshair \"0\"");
                SetClientDvar(client.ClientNum, "cg_scoreboardPingText \"1\"")

            }
        }
    }
}


Reply

#22
Yes, Should work. But You Have add this too , according to @HeXman fastrestart has to be called when a player is connected and ingame , so you have to add this before the fast restart; it waits 60 seconds to make sure everybody is connected.
also if you dont want this , you can restart it manally.

Code:
using system.threading
public override void OnMapChange()
               {
  thread.Sleep(60000);
  servercommand("fast_restart");
        }
Reply

#23
EDIT:
SOLVED


Work Perfectly now for me, thank you Hexman for the plugin and OzonE for the great help.
Reply

#24
it work good but i want to disable the cursor and some other shits of softcore plz answer me
Reply

#25
I cant compile because of this error!

Error 1 'plugin_test.plugin_test.OnFastRestart()': no suitable method found to override

Whats problem?

Reply

#26
Code:
Saeed Jan Ba Ejze :P


fuck it , i made one for ya.

New Version :
Fast Restart After 60 Seconds
Fast restart Alert On Chat.
Game Is Now L!VE On Chat.




Because Of Open Source FTW , Here Is The Source:


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


namespace plugin_test
{

    public class plugin_test : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Semi Hardcore Plugin 2.0 By HeXman, Edited By OzonE : Loaded!");
        }
        
        
        public override void OnMapChange()
         {  
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               Thread.Sleep(60000);
             ServerCommand("fast_restart");
             ServerSay("Game Is Now ^2L!VE",true);
        }
        public override void OnFastRestart()
        {
            hardcore();
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
            SetClientDvar(Client.ClientNum, "g_hardcore \"1\"");
            SetClientDvar(Client.ClientNum, "cg_drawCrosshair \"0\"");
            SetClientDvar(Client.ClientNum, "cg_scoreboardPingText \"1\"");
        }
        public void hardcore()
        {
            foreach (ServerClient client in GetClients())
            {
                SetClientDvar(client.ClientNum, "g_hardcore \"1\"");
                SetClientDvar(client.ClientNum, "cg_drawCrosshair \"0\"");
                SetClientDvar(client.ClientNum, "cg_scoreboardPingText \"1\"");

            }
        }
    }
}

DLL File Attached Now Like a sir


EDIT : add me +rep Forever Alone





Attached Files
.zip   SemiHC.zip (Size: 2.16 KB / Downloads: 69)
Reply

#27
(04-23-2012, 13:09)spiderabd Wrote: it work good but i want to disable the cursor and some other shits of softcore plz answer me
plz can some one help me
At ozone plz help At
Forever Alone Forever Alone
Forever Alone
Forever Alone
Forever Alone
Forever Alone


Reply

#28
(04-24-2012, 09:49)spiderabd Wrote:
(04-23-2012, 13:09)spiderabd Wrote: it work good but i want to disable the cursor and some other shits of softcore plz answer me
plz can some one help me
At ozone plz help At
Forever Alone Forever Alone
Forever Alone
Forever Alone
Forever Alone
Forever Alone
stop Forever Alone .
use the latest plugin i just posted , it removes everything after the fast restart
Reply

#29
(04-24-2012, 10:11)OzonE Wrote:
(04-24-2012, 09:49)spiderabd Wrote:
(04-23-2012, 13:09)spiderabd Wrote: it work good but i want to disable the cursor and some other shits of softcore plz answer me
plz can some one help me
At ozone plz help At
Forever Alone Forever Alone
Forever Alone
Forever Alone
Forever Alone
Forever Alone
stop Forever Alone .
use the latest plugin i just posted , it removes everything after the fast restart
it's very bad to fast_restart map every map Sad
can you solve this do the changes without fast restarting?plz

Reply

#30
(04-24-2012, 09:07)OzonE Wrote:
Code:
Saeed Jan Ba Ejze :P


fuck it , i made one for ya.

New Version :
Fast Restart After 60 Seconds
Fast restart Alert On Chat.
Game Is Now L!VE On Chat.




Because Of Open Source FTW , Here Is The Source:


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


namespace plugin_test
{

    public class plugin_test : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Semi Hardcore Plugin 2.0 By HeXman, Edited By OzonE : Loaded!");
        }
        
        
        public override void OnMapChange()
         {  
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               ServerSay("^1Warm Up! ^2Fast Restart In ^360 ^2Seconds!",true);
               Thread.Sleep(60000);
             ServerCommand("fast_restart");
             ServerSay("Game Is Now ^2L!VE",true);
        }
        public override void OnFastRestart()
        {
            hardcore();
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
            SetClientDvar(Client.ClientNum, "g_hardcore \"1\"");
            SetClientDvar(Client.ClientNum, "cg_drawCrosshair \"0\"");
            SetClientDvar(Client.ClientNum, "cg_scoreboardPingText \"1\"");
        }
        public void hardcore()
        {
            foreach (ServerClient client in GetClients())
            {
                SetClientDvar(client.ClientNum, "g_hardcore \"1\"");
                SetClientDvar(client.ClientNum, "cg_drawCrosshair \"0\"");
                SetClientDvar(client.ClientNum, "cg_scoreboardPingText \"1\"");

            }
        }
    }
}

DLL File Attached Now Like a sir

This is doing EXACTLY want I wanted, thank you very much. Finally no more typing fast_respawn on server console.......
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Infected Stuff is semi broken DidUknowiPwn 2 3,455 09-21-2013, 20:22
Last Post: surtek
  Search Plugin Fluid Killcam N3xT_974 1 3,063 09-10-2013, 20:27
Last Post: Nekochan
  [Release] FXAA Injector Battlefield 3+Best Settings [Update danoc1 v1.3 Beta] iPaddie 31 64,603 08-30-2013, 00:51
Last Post: Squideh
  [Release] Hardcore Simulator mn_acer1 4 4,457 08-25-2013, 13:28
Last Post: mn_acer1
  [Release] Tactical Training Mod Beta 2 Hixos 30 28,098 05-31-2013, 17:20
Last Post: kool123
  [Tutorial] How to get a CS:GO beta key Romuald27 17 10,733 04-05-2013, 18:12
Last Post: SuperNovaAO
  [Release] HideAndSeek Mod v1.0 BETA Tomsen1410 18 18,455 03-21-2013, 08:13
Last Post: Ryanrc
  [Release] Zombie Epidemic Mod Beta Lemon 92 67,351 03-07-2013, 12:30
Last Post: Lemon
  [Release] Black Tomato M 0.4.2 BETA // Ingame Admin Menu d0h! 5 12,356 01-01-2013, 22:23
Last Post: joey
Rainbow [Release] xZombie Mod (Beta) Nekochan 206 95,169 01-01-2013, 08:33
Last Post: SMIRNOFF2096

Forum Jump:


Users browsing this thread:
5 Guest(s)

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