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

#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

#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

#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



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 6,556 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,671 11-08-2013, 19:13
Last Post: clemi555
  Help Modifying plugin maverigh 5 7,713 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 8,379 10-19-2013, 06:59
Last Post: iRoNinja
  Infected Stuff is semi broken DidUknowiPwn 2 5,088 09-21-2013, 20:22
Last Post: surtek
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 3,693 09-13-2013, 09:31
Last Post: Hallla
  Help choose 2 random players?(1 each team) 26hz 6 6,352 09-12-2013, 17:32
Last Post: Yamato
  Search Plugin Fluid Killcam N3xT_974 1 4,015 09-10-2013, 20:27
Last Post: Nekochan
  !kill Plugin Hallla 1 3,534 09-07-2013, 22:30
Last Post: axel-le-meilleur
  God Mode Plugin - Everyone has rcon admin srskiller 4 7,891 08-28-2013, 19:03
Last Post: phillipito

Forum Jump:


Users browsing this thread:
1 Guest(s)

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