Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
Update admin_system.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Pisex committed Mar 3, 2024
1 parent 0bec878 commit 5d04b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void AdminSystem::AllPluginsLoaded()

g_pUtils->StartupServer(g_PLID, StartupServer);
g_pUtils->AddChatListenerPre(g_PLID, ChatListener);
g_pUtils->RegCommand(g_PLID, {}, {"!admin","!ban","!unban","!mute","!unmute","!gag","!ungag","!silence","!unsilence","!status","!kick","!who","!csay","!hsay","!rcon","!freeze","!unfreeze","!noclip","!setteam","!changeteam","!slap","!slay","!map","!reload_admins","!add_admin","!remove_admin"}, [](int iSlot, const char* szContent){
g_pUtils->RegCommand(g_PLID, {}, {"!admin","!offban", "!rename","!ban","!unban","!mute","!unmute","!gag","!ungag","!silence","!unsilence","!status","!kick","!who","!csay","!hsay","!rcon","!freeze","!unfreeze","!noclip","!setteam","!changeteam","!slap","!slay","!map","!reload_admins","!add_admin","!remove_admin"}, [](int iSlot, const char* szContent){
CCSPlayerController* pPlayerController = (CCSPlayerController *)g_pEntitySystem->GetBaseEntity((CEntityIndex)(iSlot + 1));
g_AdminSystem.ParseChatCommand(iSlot, szContent+1, pPlayerController);
return false;
Expand Down

0 comments on commit 5d04b3a

Please sign in to comment.