Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Infected Choose Plugin ?
#1
Hey All,
Does everyone know if its give a Plugin with that you can choose the Player who should be infected? ,and when not can everyone code it for me ? Pls I thinked about a command like !infected <name> or better if it works with status command in rcon like !infected <ClientID> or something like that
Thx in Advice Smile
Reply

#2
(05-12-2013, 08:48)Hallla Wrote: Hey All,
Does everyone know if its give a Plugin with that you can choose the Player who should be infected? ,and when not can everyone code it for me ? Pls I thinked about a command like !infected <name> or better if it works with status command in rcon like !infected <ClientID> or something like that
Thx in Advice Smile
I think it's not possible ... but you have to ask @ Sailor Moon, he knows a lot about the call of duty
Reply

#3
It is possible.

Try to use Timing, OnNotify. ( Parameters: "menuresponse", "change/team", "axis" );
Or
Code:
PlayerSuicide(ChoosenClient);
ChoosenClient.Team = Teams.Axis;
=> Is same as 'self ([level.axis]);' in gsc.

My KillMeZombie mod was made by this method.

You can get Client by ID by this code ( by me )
Code:
private ServerClient GetPlayerByID(int num)
        {
            List<ServerClient> clients;
            clients = GetClients();
            if (clients != null)
            {
                if (clients.Count > 0)
                {
                    foreach (ServerClient client in GetClients())
                    {
                        if (client.Ping == 999)
                            continue;

                        //if (client.Other.isAlive == true)
                        //{
                        if (client.ConnectionState != ConnectionStates.MapLoading)
                        {
                            if (client.ConnectionState != ConnectionStates.Connecting)
                            {
                                if (client.ConnectionState != ConnectionStates.Zombie)
                                {
                                    if (client.ClientNum == num)
                                    {
                                        ServerPrint("Client with " + num + " ID found");
                                        return client;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            ServerPrint("Client with " + num + " ID wasn't found!");
            return null;
        }

ServerClient choosenplayer = GetClientById(4);
ChangeTeam(Choosenplayer); .. .etc
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
(05-12-2013, 12:55)SailorMoon Wrote: It is possible.

Try to use Timing, OnNotify. ( Parameters: "menuresponse", "change/team", "axis" );
Or
Code:
PlayerSuicide(ChoosenClient);
ChoosenClient.Team = Teams.Axis;
=> Is same as 'self ([level.axis]);' in gsc.

My KillMeZombie mod was made by this method.

You can get Client by ID by this code ( by me )
Code:
private ServerClient GetPlayerByID(int num)
        {
            List<ServerClient> clients;
            clients = GetClients();
            if (clients != null)
            {
                if (clients.Count > 0)
                {
                    foreach (ServerClient client in GetClients())
                    {
                        if (client.Ping == 999)
                            continue;

                        //if (client.Other.isAlive == true)
                        //{
                        if (client.ConnectionState != ConnectionStates.MapLoading)
                        {
                            if (client.ConnectionState != ConnectionStates.Connecting)
                            {
                                if (client.ConnectionState != ConnectionStates.Zombie)
                                {
                                    if (client.ClientNum == num)
                                    {
                                        ServerPrint("Client with " + num + " ID found");
                                        return client;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            ServerPrint("Client with " + num + " ID wasn't found!");
            return null;
        }

ServerClient choosenplayer = GetClientById(4);
ChangeTeam(Choosenplayer); .. .etc

SailorMoon First Big Thx to you, but can you put a download online? Im a Noob in Things coding etc ;D So pls put a DL online
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,161 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,739 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,463 10-30-2013, 11:59
Last Post: clacki
Thumbs Up [Release] AllInOne! for infected robinvm 4 4,734 10-19-2013, 20:00
Last Post: Casper
  Help Modifying plugin maverigh 5 5,656 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,168 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 62,154 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,610 09-23-2013, 13:18
Last Post: SgtLegend
  Infected Stuff is semi broken DidUknowiPwn 2 3,452 09-21-2013, 20:22
Last Post: surtek
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,709 09-13-2013, 09:31
Last Post: Hallla

Forum Jump:


Users browsing this thread:
1 Guest(s)

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