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.
*/