Raised This Month: $23 Target: $400
 5% 

GameName Wins v0.7.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
eat1k
Senior Member
Join Date: Apr 2018
Old 11-24-2018 , 15:31   GameName Wins v0.7.1
Reply With Quote #1

Author: w0w (me).

Current version: 0.7.1

Changelog:
Spoiler


Requirements:
- AMX Mod X 1.9.0 or higher.
- ReAPI module.

Displays in the gamename the number of terrorists and Counter-Terrorists (depending on the CVar gamename_wins_mode: all players -0- or only alive -1-) and the number of wins of both teams.
<number of CT> CT "<number of wins of CT>: <number of wins of T>" T <number of T>

The config file is created automatically in "amxmodx/configs/plugins" where you can set settings which you want.

Code:
// Cvars for plugin "GameName Wins" by "w0w" (gamename_wins.amxx, v0.5)


// Counting all players (0) or alive only (1)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
gamename_wins_mode "0"

// Period of info updates
// -
// Default: "10.0"
// Minimum: "0.100000"
gamename_wins_update_interval "10.0"
Official resource topic on:
Attached Files
File Type: sma Get Plugin or Get Source (gamename_wins.sma - 605 views - 2.8 KB)

Last edited by eat1k; 12-04-2018 at 06:30. Reason: Updated to 0.7.1. Some improvements to the code.
eat1k is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 11-25-2018 , 05:59   Re: GameName Wins v0.5
Reply With Quote #2

Updated to 0.5.1. Fixed an issue regarding set_task when map starts.
eat1k is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-25-2018 , 12:27   Re: GameName Wins v0.5.1
Reply With Quote #3

If you are using amx 1.9, you should use the new native set_task_ex and get_players_ex and not the old native hardcoded ones.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
eat1k
Senior Member
Join Date: Apr 2018
Old 11-25-2018 , 13:29   Re: GameName Wins v0.5.1
Reply With Quote #4

Quote:
Originally Posted by iceeedr View Post
If you are using amx 1.9, you should use the new native set_task_ex and get_players_ex and not the old native hardcoded ones.
Thank you, I'll change it in the next version.

Last edited by eat1k; 11-25-2018 at 13:35.
eat1k is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 11-25-2018 , 16:23   Re: GameName Wins v0.6
Reply With Quote #5

Updated to 0.6. set_task changed to set_task_ex and get_players to get_players_ex (thanks to iceeedr).
eat1k is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 11-26-2018 , 12:11   Re: GameName Wins v0.7
Reply With Quote #6

Updated to 0.7. Optimization of code (thanks to georgeml)
  • get_playersnum_ex instead of get_players_ex.
  • change_task instead of remove_task + set_task.
eat1k is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 11-27-2018 , 14:32   Re: GameName Wins v0.7
Reply With Quote #7

Have screens?
iclassdon is offline
Send a message via MSN to iclassdon
eat1k
Senior Member
Join Date: Apr 2018
Old 11-27-2018 , 14:42   Re: GameName Wins v0.7
Reply With Quote #8

Quote:
Originally Posted by iclassdon View Post
Have screens?
Only in Russian, but I hope you'll understand what the plugin does.

Servers - Game - Players - Map - Ping. The plugin changes "Game" field.
eat1k is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 12-03-2018 , 11:26   Re: GameName Wins v0.7.1
Reply With Quote #9

Updated to 0.7.1. Some improvements to the code.
__________________
eat1k is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:09.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode