Originally Posted by
IzNoGoD
Try using the kick2("reason") in libcod
PHP Code:
kick2(clientnum, "message");
It currently doesn't temporally ban the player for a few minutes like the default function does (uses tempBanClient).
Your message starts with the player's name and then you message. I don't know if there is a way around this.
Edit: it sends the disconnect message like this (A):
PHP Code:
SV_SendServerCommand(client, 1, "%c \"%s\"", 119, message);
or B:
PHP Code:
SV_SendServerCommand(client, 1, "%c \"%s^7 %s\" PB", 119, &playername, message);
I think A is for precached messages and B isn't.
Edit 2: in the function tempBanClient after "%s (guid %i) was kicked for cheating\n" is the function that bans the guid.
PHP Code:
SV_BanGuidBriefly(int guid) = 808D72E (1.3)