mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 01:03:21 +00:00
add no rushing us troll
This commit is contained in:
parent
68a43a78cf
commit
f60250042a
5 changed files with 32 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue