{
if(argc >= 3)
{
- if(strtolower(argv(1)) != "world")
+ entity tell_to = GetFilteredEntity(argv(1));
+ float tell_accepted = VerifyClientEntity(tell_to, TRUE, FALSE);
+
+ if(tell_accepted > 0)
{
- entity to = GetFilteredEntity(argv(1));
- float accepted = VerifyClientEntity(to, TRUE, FALSE);
-
- print("accepted: ", ftos(accepted), ".\n");
-
- if(accepted)
+ if(tell_to != self)
{
- Say(self, FALSE, to, substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2)), TRUE);
+ Say(self, FALSE, tell_to, substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2)), TRUE);
return;
}
- else { print_to(self, GetClientErrorString(accepted, argv(1))); }
+ else { print_to(self, "You can't ^2tell^7 a message to yourself."); return; }
}
- else
- {
+ else if(strtolower(argv(1)) == "world")
+ {
+ print("magic ear ftw\n");
trigger_magicear_processmessage_forallears(self, -1, world, substring(command, argv_start_index(ParseCommandPlayerSlotTarget_firsttoken), argv_end_index(-1) - argv_start_index(ParseCommandPlayerSlotTarget_firsttoken)));
return;
}
+ else { print_to(self, strcat("tell: ", GetClientErrorString(tell_accepted, argv(1)), ".")); return; }
}
}
client = GetFilteredEntity(t);
accepted = VerifyClientEntity(client, TRUE, FALSE);
- if not(accepted)
+ if not(accepted > 0)
{
print("adminmsg: ", GetClientErrorString(accepted, t), (targets ? ", skipping to next player.\n" : ".\n"));
continue;
entity client = GetFilteredEntity(argv(1));
float accepted = VerifyClientEntity(client, FALSE, FALSE);
- if(accepted)
+ if(accepted > 0)
{
self = client;
anticheat_report();
client = GetFilteredEntity(argv(1));
accepted = VerifyClientEntity(client, TRUE, FALSE);
- if(accepted)
+ if(accepted > 0)
{
stuffcmd(client, "defer clear\n");
print("defer clear stuffed to ", argv(1), " (", client.netname, ")\n");
client = GetFilteredEntity(t);
accepted = VerifyClientEntity(client, FALSE, FALSE);
- if not(accepted)
+ if not(accepted > 0)
{
print("moveplayer: ", GetClientErrorString(accepted, t), (targets ? ", skipping to next player.\n" : ".\n"));
continue;
client = GetFilteredEntity(argv(2));
accepted = VerifyClientEntity(client, FALSE, TRUE);
- if not(accepted)
+ if not(accepted > 0)
{
print("playerdemo: read: ", GetClientErrorString(accepted, argv(2)), ".\n");
return;
client = GetFilteredEntity(argv(2));
accepted = VerifyClientEntity(client, FALSE, FALSE);
- if not(accepted)
+ if not(accepted > 0)
{
print("playerdemo: write: ", GetClientErrorString(accepted, argv(2)), ".\n");
return;