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
(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
I think it's not possible ... but you have to ask @ Sailor Moon, he knows a lot about the call of duty
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
(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