Raised This Month: $ Target: $400
 0% 

Jailbreak - Simon Writes Game [v1.0 BETA]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Korxu
Senior Member
Join Date: Sep 2010
Old 10-02-2011 , 12:02   Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #1

Simon Writes Game
v 1.0 BETA


Information.

It is a plugin for Jailbreak servers, but can be used in all mods.

Basically, this open a menu ( only for the CT team and admins in any team ) that shows a list of words. Now, the player select a word and it appears in a HUD message for all the players, but only the T team can play. The first player that writes the word win the game.

For now, the plugin is a beta release. Please report any error or bug to fix it and add suggestions and ideas for the plugin.

Customization ( cvars ).

jb_swrites_enabled

- 1: Enable the mod. 0: Disable it. ( DEFAULT: 1 )

jb_admin_access

- 1: Admins with the flag ADMIN_KICK can open the menu in all teams. 0: Can't open the menu in all teams, only in CT team. ( DEFAULT: 1 )

jb_block_others

- 1: Block the messages of the others player if are dead, or in any team different that the T team. 0: Don't block it, any player can write when the is playing the game. ( DEFAULT: 1 )

jb_write_method

- 1: The player only can write the exact word to win the game ( using equali ( ) ). 0: The player can write a lot of words, but if the word of the game is in the message, he win ( using containi ( ) ). ( DEFAULT: 1 )

Commands.

say & say_team /simonwrites
say & say_team /wgame

- Show the menu of the simon writes game.

Installation.

Only one plugin, a very easy installation.

Download the plugin ( clic on "Get Plugin" ), upload the file ".amxx" to "addons/amxmodx/plugins" folder, and finally add the name of the plugin ( jb_simon_writes.amxx ) in the file "plugins.ini" ( in "addons/amxmodx/configs" ).

You can download the source code and edit it. Next, you have to compile it ( using webcompiler or locally ) and do the same process to install it.

Changelog.

Code:
2/10/2011 - First release ( beta version, v1.0 )

Last edited by Korxu; 11-07-2015 at 16:47.
Korxu is offline
fpA
Senior Member
Join Date: May 2011
Location: Zaragoza
Old 10-02-2011 , 12:10   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #2

Good job @Korxu.

But... you can add more words.
fpA is offline
Send a message via Skype™ to fpA
Larcyn
Senior Member
Join Date: Oct 2010
Old 10-02-2011 , 12:44   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #3

You should make the word random to prevent ghosting from guards to prisoners.
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)
Larcyn is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 10-02-2011 , 12:48   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #4

@fpA I will add more words for the next versions, thanks.

@Larcyn oh it's true, for the next updates a will change the menu to show a random word and add more words to prevent that show the same words. Thanks.
Korxu is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-02-2011 , 12:50   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #5

The white and yellow colors for the name of the plugin are impossible to read. Change them please.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Larcyn
Senior Member
Join Date: Oct 2010
Old 10-02-2011 , 13:06   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #6

You could make more word categories and when you choose a category the a word will popup from that category to the players

[Menu Header] Choose Category:

1. Computer
2. Garden
3. Winter
4. Christmas
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)

Last edited by Larcyn; 10-02-2011 at 13:10.
Larcyn is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 10-04-2011 , 08:55   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #7

@nikhilgupta345 well, I will change it, thanks.

@Larcyn ok, for the next updates I will add it. Thanks again.

In a few days I will release a new version. Wait please.
Korxu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2011 , 11:00   Re: Jailbreak - Simon Writes Game [v1.0 BETA]
Reply With Quote #8

- - Hardcoding the words is a bad idea. That's something which should be customizable and dynamic. Use a config file for that.
- Your menu is static, so you need to generate it only one time.
- You overuse static. It's generally used for arrays in a function called fairly often. WordsMenu(), GameStart(), PlayerWin(), GameFinish(), check_players(), it's unjustified. Reversely, static in colored_print() could be used.
- When you loop through all players, index starts to 1 : i = 1; i <= g_MaxPlayers
- menu_item_getinfo is not needed, you can use directly item.

Others things to say.

But for now, unapproved.
__________________
Arkshine is offline
Reply



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 22:28.


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