Raised This Month: $12 Target: $400
 3% 

Hangman


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-27-2006 , 23:00   Hangman
Reply With Quote #1

Plugin update 15:15, 25/02-07:
Requests and minor fix, thanks to vittu.
- Added guessing at whole word.
- Added 'banning' of X num of last words.
- Added /hangman [word], wich allows you to start a hangman with a custom word, not read from the file.
- Fixed error with autohang.

This is not tested, I would appriciate if you spotted an error/bug, let me know.

Plugin is reading the words out of the file hangman.ini in amxx cfg dir.
If you don't create a file or if the file doesn't contain any words, the plugin will create one with 6 words...
Code:
/*

[Cvars]
hangman_chances		deafult: 13		description: How many chances before failure.
hangman_onlydead	deafult: 1		description: Only dead players can see the hangman and guess.
hangman_timer		deafult: 120		description: How much time to guess before failure.
hangman_autohang	deafult: 0 ( min 5 )	description: Start hangman x secons after the one before is finished. If lower than 5 ( seconds ), nothing happends.
//	These 2 are only for the money version ( for cstrike )
hangman_money_char	deafult: 500		description: How much money should be awarded to player who guesses one char right.
hangman_money_answer	deafult: 3000		description: How much money should be awarded to player who solves the word.

[Commands]
say /hangman [word]	description: Start a hangman. If no word, one from the word buffer will be randomly selected.
say /guess X		description: Guess at char X.
say guess X		description: Same as above.
say X			description: Same as above.
say [word]		description: Guess at whole word.
*/
Attached Thumbnails
Click image for larger version

Name:	hangman.JPG
Views:	1422
Size:	6.7 KB
ID:	11579  
Attached Files
File Type: sma Get Plugin or Get Source (hangman.sma - 1670 views - 12.9 KB)
File Type: sma Get Plugin or Get Source (hangman_nomoney.sma - 1692 views - 11.6 KB)

Last edited by [ --<-@ ] Black Rose; 02-25-2007 at 09:17.
[ --<-@ ] Black Rose is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-27-2006 , 23:04   Re: Hangman
Reply With Quote #2

Nice of you to explain how it works...

:p
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-27-2006 , 23:44   Re: Hangman
Reply With Quote #3

  1. It auto-generates a file called hangman.ini and automatically stores a few words in there (Though you can add more yourself)
  2. type /hangman in regular chat to start it.
  3. type /guess to make a guess.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-27-2006 , 23:47   Re: Hangman
Reply With Quote #4

Thank you, Rose...
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-27-2006 , 23:48   Re: Hangman
Reply With Quote #5

I am not Rose, but if you wish to call me that, I will respond to it.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
ThomasNguyen
Senior Member
Join Date: May 2006
Old 10-28-2006 , 15:19   Re: Hangman
Reply With Quote #6

i like this mod gj rose
__________________
ThomasNguyen is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-31-2006 , 00:59   Re: Hangman
Reply With Quote #7

Quote:
Originally Posted by Sp4rt4n View Post
Nice of you to explain how it works...

:p
lol..

can this be edited to work with ALL mods?

also where do i make the hangman.ini?
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-31-2006 , 08:02   Re: Hangman
Reply With Quote #8

Quote:
Originally Posted by SweatyBanana View Post
  1. It auto-generates a file called hangman.ini and automatically stores a few words in there (Though you can add more yourself)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 10-31-2006 , 08:18   Re: Hangman
Reply With Quote #9

lol, needs the hanging post XD.

Quote:
/*
Reads the words out of the file hangman.ini in cfg dir.
If no you don't create a file the plugin will create one with 6 words...

[Cvars]
hangman_chances deafult: 13 description: How many chances before failure.
hangman_onlydead deafult: 1 description: Only dead players can see the hangman and guess.
hangman_autohang deafult: 0 ( min 125 ) description: Start hangman every x secons. If lwoer than 125 ( seconds ), nothing happends.
hangman_money_char deafult: 500 description: How much money should be awarded to player who guesses one char right.
hangman_money_answer deafult: 3000 description: How much money should be awarded to player who solves the word.

[Commands]
say /hangman description: Start a hangman.
say /guess X description: Guess at char X.
say guess X description: Same as above.
say X description: Same as above.
*/
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 11-01-2006 , 22:42   Re: Hangman
Reply With Quote #10

most people can tell what it does from ur nice pic rose, but update ur post with cvars, commands, and a description for those people who's english isn't too good and don't know what hangman is.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 09:57.


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