About This File
Adhan & Prayer Time Plugin for CS 1.6
AMX Mod X (1.10)
Developer: sp_saad
Purpose: Encourage players in Algeria to pray on time while playing CS 1.6.
This plugin automatically plays the Adhan (Islamic call to prayer) and temporarily moves players to Spectator mode during prayer times, allowing them to take a break and perform Salah. The goal is to help players earn Ajar (reward) and Hassanat (good deeds) while enjoying the game responsibly.
How It Works
-
Player Location Detection
-
Uses GeoIP2 City to determine if a player is located in Algeria.
-
-
Prayer Times
-
Reads prayer times from a JSON file updated daily for all Algerian provinces.
-
JSON files are stored in:
addons/amxmodx/configs/adhan -
Utilizes the json.inc library for parsing.
-
-
Adhan Playback
-
Adhan sounds are automatically played during prayer times.
-
Players are moved to Spectator mode for 15 minutes during the prayer period.
-
-
AMX Mod X Compatibility
-
Built for AMXX version 1.10.
-
Installation Instructions
1. Configure the JSON Generator Script
-
Copy
generate_adhan_time.pyto your server. -
Edit the following line in the script:
/home/cs_server/cstrike/addons/amxmodx/configs/adhanReplace it with the full path where the daily
adhan-YYYY-MM-DD.jsonfile will be saved.
2. Edit Cron Setup Script
-
Open
setup-cron.shand edit the script path:SCRIPT_PATH="/home/cs_server/scripts/generate_adhan_time.py"Replace it with the actual path to
generate_adhan_time.py.
3. Activate Cron Job
-
Give execute permission and run the setup script:
chmod +x setup-cron.sh ./setup-cron.sh -
This schedules the daily update at midnight to generate the latest prayer times.
4. Install the Plugin
-
Copy the
cstrikefolder into your server directory. -
Add the plugin to
plugins.ini:addons/amxmodx/configs/plugins.iniAdd the line:
adhan_prayer_time.amxx
5. Restart the Server
-
Restart CS 1.6 to activate the plugin.
Notes
-
The plugin is still under development.
-
Feedback, suggestions, and bug reports are welcome.
Final Words
Baraka Allahou Fikom – May Allah bless you all.

