Smurf support

This commit is contained in:
ChocoTaco 2021-12-17 15:51:02 -05:00
parent e44b1fcdd7
commit 7063b5f09d
2 changed files with 37 additions and 13 deletions

View file

@ -564,23 +564,46 @@ function ServerCmdPrintClientInfo(%client, %targetClient)
{ {
if ((!%targetClient.isSuperAdmin) && (%client.isSuperAdmin)) if ((!%targetClient.isSuperAdmin) && (%client.isSuperAdmin))
{ {
%wonid = getField( %targetClient.getAuthInfo(), 3);
%ip = %targetClient.getAddress(); %ip = %targetClient.getAddress();
%guid = %targetClient.guid;
} }
else else
{ {
%wonid = "PROTECTED"; %ip = "N/A";
%ip = "PROTECTED"; %guid = "N/A";
} }
MessageClient(%client, '', '---------------------------------------------------------------');
MessageClient(%client, 'ClientInfo', "\c3Client Info...\n" @ // get the client info
"ClientName: \c2" @ %targetClient.nameBase @ "\n" @ %authInfo = %targetClient.getAuthInfo();
"\c3Wonid: \c2" @ %wonid @ "\n" @ %name = getField(%authInfo, 0);
"\c3IP: \c2" @ %ip @ "\n\n" @
"\c3TeamKills:\c2 " @ %targetClient.teamkills @ "\n" @ if(%name $= "") //Bots
"\c3BK (BaseKills): \c2" @ %targetClient.tkDestroys @ "\n" @ %name = "N/A";
"\c3Suicides:\c2 " @ %targetClient.suicides @ "\n");
MessageClient(%client, '', '---------------------------------------------------------------'); if(%targetClient.isSmurf)
%smurfname = stripChars( detag( getTaggedString( %targetClient.name ) ), "\cp\co\c6\c7\c8\c9" );
else
%smurfname = "N/A";
if(%targetClient.teamkills $= "")
%teamkills = "N/A";
else
%teamkills = %targetClient.teamkills;
if(%targetClient.tkDestroys $= "")
%tkDestroys = "N/A";
else
%tkDestroys = %targetClient.tkDestroys;
MessageClient(%client, '', ' ');
MessageClient(%client, 'ClientInfo', "\c3Client Info:\n" @
"ClientName: \c2" @ %name @ "\n" @
"\c3SmurfName: \c2" @ %smurfname @ "\n" @
"\c3Guid: \c2" @ %guid @ "\n" @
"\c3IP: \c2" @ %ip @ "\n" @
"\c3TeamKills:\c2 " @ %teamkills @ "\n" @
"\c3BaseKills: \c2" @ %tkDestroys @ "\n");
MessageClient(%client, '', ' ');
} }
else else
messageClient(%client, 'MsgError', '\c2Only Admins can use this command.'); messageClient(%client, 'MsgError', '\c2Only Admins can use this command.');

View file

@ -1257,9 +1257,10 @@ function DefaultGame::sendGamePlayerPopupMenu( %game, %client, %targetClient, %k
else else
messageClient( %client, 'MsgPlayerPopupItem', "", %key, "GagPlayer", "", 'Gag Player', 17); messageClient( %client, 'MsgPlayerPopupItem', "", %key, "GagPlayer", "", 'Gag Player', 17);
messageClient( %client, 'MsgPlayerPopupItem', "", %key, "PrintClientInfo", "", 'Client Info', 16 ); // z0dd - ZOD - MeBad, 7/13/03. Send client information.
if( %client.isSuperAdmin ) if( %client.isSuperAdmin )
{ {
messageClient( %client, 'MsgPlayerPopupItem', "", %key, "PrintClientInfo", "", 'Client Info', 16 ); // z0dd - ZOD - MeBad, 7/13/03. Send client information.
messageClient( %client, 'MsgPlayerPopupItem', "", %key, "BanPlayer", "", 'Ban', 4 ); messageClient( %client, 'MsgPlayerPopupItem', "", %key, "BanPlayer", "", 'Ban', 4 );
if ( %targetClient.isFroze ) if ( %targetClient.isFroze )