Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Articles » PAWN Plugin, free AWP and Armor giveaway to the top players of the Counter Strike round

PAWN Plugin, free AWP and Armor giveaway to the top players of the Counter Strike round

02.06.2023, 13:46adminViews: 156Comments: 0
PAWN Plugin, free AWP and Armor giveaway to the top players of the Counter Strike round

About this content

PAWN Плагин, бесплатная выдача AWP и Брони, топ игрокам раунда Counter Strike
To create a plugin that will give AWP and armor to the two best players of the previous round, you will need to use AMX Mod X and Counter-Strike 1.6. Here is the general process for creating such a plugin:

  1. Create a new plugin file with the ".sma" extension (for example, "top_players.sma") and open it in a text editor.

  2. Insert the following code at the beginning of the plugin file:

CODE AMXMODX

  1. In this code, we define the function plugin_init(), which registers the plugin and the event Round_End, as well as the function RoundEnd(), which will be executed at the end of the round. Inside the function RoundEnd() we find the two best players from the previous round (the required number of players can be changed in the variable MAX_PLAYERS) and give them AWP and armor.

  2. Compile the plugin file using the AMX Mod X Compiler.

  3. Place the compiled plugin file (with the ".amxx" extension) in the "addons/amxmodx/plugins" folder on your Counter-Strike 1.6 server.

  4. Restart the Counter-Strike 1.6 server

Comments (0)

Add comment

Leave a comment

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password