add no rushing us troll

This commit is contained in:
Jackz 2022-08-18 23:24:04 -05:00
parent 68a43a78cf
commit f60250042a
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
5 changed files with 32 additions and 6 deletions

View file

@ -544,4 +544,18 @@ stock LookAtPoint(int entity, const float destination[3]){
}
angles[1] -= 180;
TeleportEntity(entity, NULL_VECTOR, angles, NULL_VECTOR);
}
}
stock void PrintToConsoleAdmins(const char[] format, any ...) {
char buffer[254];
VFormat(buffer, sizeof(buffer), format, 2);
for(int i = 1; i <= MaxClients; i++) {
if(IsClientConnected(i) && IsClientInGame(i)) {
AdminId admin = GetUserAdmin(i);
if(admin != INVALID_ADMIN_ID) {
PrintToConsole(i, "%s", buffer);
}
}
}
PrintToServer("%s", buffer);
}