Skip to content

Commit

Permalink
Place plugins under folders (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 authored Dec 18, 2023
1 parent a860589 commit 465da08
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 35 deletions.
22 changes: 11 additions & 11 deletions cstrike/addons/amxmodx/configs/plugins-ChatAdditions.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
; A core plugin for control different types of chat.
ChatAdditions_Core.amxx debug
ChatAdditions/ChatAdditions_Core.amxx debug

; Storage choose (disable not used storages)
; IMPORTANT: you must leave ONLY ONE plugin to manage the storage.
CA_Storage_SQLite.amxx debug ; SQLite storage provider
; CA_Storage_CSBans.amxx debug ; CSBans (MySQL) storage provider
; CA_Storage_GameCMS.amxx debug ; GameCMS (MySQL) storage provider
ChatAdditions/Storage/CA_Storage_SQLite.amxx debug ; SQLite storage provider
; ChatAdditions/Storage/CA_Storage_CSBans.amxx debug ; CSBans (MySQL) storage provider
; ChatAdditions/Storage/CA_Storage_GameCMS.amxx debug ; GameCMS (MySQL) storage provider

; Extensions
CA_AntiFlood.amxx debug ; Antiflood for chat
CA_Mute.amxx debug ; Players can choose who they can hear.
CA_Addon_DeathMute.amxx debug ; Alive players don't hear dead players after 5 secs
CA_Addon_RankRestrictions.amxx debug ; Restrict chat until you reach the rank of a statistic.
CA_Addon_VoteGag.amxx debug ; Ability for players to vote for gag.
CA_Addon_RequestUnGag.amxx debug ; A player can apologize to the administration.
CA_Gag.amxx debug ; Manage player chats for the admin.
ChatAdditions/CA_AntiFlood.amxx debug ; Antiflood for chat
ChatAdditions/CA_Mute.amxx debug ; Players can choose who they can hear.
ChatAdditions/Addons/CA_Addon_DeathMute.amxx debug ; Alive players don't hear dead players after 5 secs
ChatAdditions/Addons/CA_Addon_RankRestrictions.amxx debug ; Restrict chat until you reach the rank of a statistic.
ChatAdditions/Addons/CA_Addon_VoteGag.amxx debug ; Ability for players to vote for gag.
ChatAdditions/Addons/CA_Addon_RequestUnGag.amxx debug ; A player can apologize to the administration.
ChatAdditions/CA_Gag.amxx debug ; Manage player chats for the admin.

; IMPORTANT: Place you chat manager below (Chat RBS plugins, Lite Translit, Colored Translit etc..)
; Most chat managers are not written using the correct chat handling,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,32 +58,19 @@ public plugin_natives() {
}

public native_filter(const name[], index, trap) {
if (strcmp(name, "aes_get_player_level")) {
return PLUGIN_HANDLED
new const na[][] = {
"aes_get_player_level",
"ar_get_user_level",
"crxranks_get_user_level",
"csstats_get_user_stats",
"cmsranks_get_user_level",
"cmsstats_get_user_skill",
"get_user_stats"
}

if (strcmp(name, "ar_get_user_level")) {
return PLUGIN_HANDLED
}

if (strcmp(name, "crxranks_get_user_level")) {
return PLUGIN_HANDLED
}

if (strcmp(name, "csstats_get_user_stats")) {
return PLUGIN_HANDLED
}

if (strcmp(name, "cmsranks_get_user_level")) {
return PLUGIN_HANDLED
}

if (strcmp(name, "cmsstats_get_user_skill")) {
return PLUGIN_HANDLED
}

if (strcmp(name, "get_user_stats")) {
return PLUGIN_HANDLED
for (new i; i < sizeof(na); i++) {
if (strcmp(na[i], name) != 0)
return PLUGIN_HANDLED
}

return PLUGIN_CONTINUE
Expand Down
File renamed without changes.

0 comments on commit 465da08

Please sign in to comment.