sm_kick now uses targeting properly
authorDavid Anderson <dvander@alliedmods.net>
Fri Jun 08 01:09:17 2007 +0000 (2007-06-08)
changeset 922980941c525fa
parent 921 e07dad9724f5
child 923 346e4c60fc32
sm_kick now uses targeting properly
plugins/basecommands.sp
translations/common.cfg
     1.1 --- a/plugins/basecommands.sp	Fri Jun 08 01:01:44 2007 +0000
     1.2 +++ b/plugins/basecommands.sp	Fri Jun 08 01:09:17 2007 +0000
     1.3 @@ -224,6 +224,8 @@
     1.4  	} else if (numClients > 1) {
     1.5  		ReplyToCommand(client, "[SM] %t", "More than one client matches", arg);
     1.6  		return Plugin_Handled;
     1.7 +	} else if (!CanUserTarget(client, clients[0])) {
     1.8 +		ReplyToCommand(client, "[SM] %t", "Unable to target");
     1.9  	}
    1.10  	
    1.11  	new userid = GetClientUserId(clients[0]);
     2.1 --- a/translations/common.cfg	Fri Jun 08 01:01:44 2007 +0000
     2.2 +++ b/translations/common.cfg	Fri Jun 08 01:09:17 2007 +0000
     2.3 @@ -34,4 +34,9 @@
     2.4  		"#format"		"{1:s}"
     2.5  		"en"			"Map {1} was not found."
     2.6  	}
     2.7 +	
     2.8 +	"Unable to target"
     2.9 +	{
    2.10 +		"en"			"You cannot target this player."
    2.11 +	}
    2.12  }