public InformAdmin (const String:rawmessage[], any:...)
{
new String:message[MESSAGE_LENGTH];
VFormat(message, MESSAGE_LENGTH, rawmessage, 2);
new AdminId:id=INVALID_ADMIN_ID;
PrintToServer(message);
new clients=GetClientCount();
for (new i=1;i<=clients;i++) {
if (IsClientConnected(i)) {
id=GetUserAdmin(i);
if (id!=INVALID_ADMIN_ID) {
PrintToConsole(i, message);
PrintToChat(i, message);
}
}
}
}
Use IsClientInGame instead of IsClientConnected. Or there may be erros.