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

Video Poker


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-16-2009 , 17:05   Re: Video Poker
Reply With Quote #21

Quote:
Originally Posted by mazmaajinsh View Post
I mean like a real poker, where everyone has it's bank account, and they can play versus each other on 6 or more seats table.
That would be a mess. First you would have to invite other players, and wait for them to accept. Or, create a game and wait for them to join. Then the first guy would start to play, and wait for others to play. He would have to keep checking the table for changes. And so on. If one of them got AFK or use retry the game would have to stop. Etc, etc. Just a mess. Forget that.
__________________
joaquimandrade is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-22-2009 , 23:50   Re: Video Poker
Reply With Quote #22

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 03-02-2009 , 17:56   Re: Video Poker
Reply With Quote #23

Quote:
Originally Posted by joaquimandrade View Post
That would be a mess. First you would have to invite other players, and wait for them to accept. Or, create a game and wait for them to join. Then the first guy would start to play, and wait for others to play. He would have to keep checking the table for changes. And so on. If one of them got AFK or use retry the game would have to stop. Etc, etc. Just a mess. Forget that.
No actually if made correctly, it wouldnt be a mess, but ok i think CS is not for poker
__________________
Ahujena
mazmaajinsh is offline
F00X
Junior Member
Join Date: Mar 2009
Old 03-04-2009 , 13:26   Re: Video Poker
Reply With Quote #24

Hello everybody
Thank you joaquimandrade for this great plugin, it really makes spectating more passable. But there is a bug in this fragment of code:
Code:
doGameOver(id)
{
	gameOver[id] = 1;
	inGame[id]= 0;	
	
	if(getCvar(CHAT_MESSAGES))
	{
		new money = fm_get_user_money(id);
		
		new name[32];
		get_user_name(id,name,31);
	
		new GAME_RESULT:gameResult = getGameResult(id);
		switch (getGameResult(id))
		{
			case 0:
			{
				client_print(0,print_chat,"%L",id,"VP_MSG_CHAT_LOST",name,betValues[id]);
			}
			default:
			{
				new betValue = betValues[id];
				new moneyToPay = betValue * MONEY_MULTIPLY[gameResult];				
				client_print(0,print_chat,"%L (%L)",id,"VP_MSG_CHAT_WIN",name,moneyToPay,id,GAME_RESULTS_TEXT[gameResult]);
				fm_set_user_money(id,money + betValue + moneyToPay);
			}
		}		
	}
}
Why this
Code:
if(getCvar(CHAT_MESSAGES))
condition is on the beginning? This makes, when you set vp_chat_msgs cvar to 0, chat messages will be disabled, but you cannot receive your money. For me to use, I've changed code to this form:
Code:
doGameOver(id)
{
	gameOver[id] = 1;
	inGame[id]= 0;	
	
	{
		new money = fm_get_user_money(id);
		
		new name[32];
		get_user_name(id,name,31);
	
		new GAME_RESULT:gameResult = getGameResult(id);
		switch (getGameResult(id))
		{
			case 0:
			{
				if(getCvar(CHAT_MESSAGES))
				client_print(0,print_chat,"%L",id,"VP_MSG_CHAT_LOST",name,betValues[id]);
			}
			default:
			{
				new betValue = betValues[id];
				new moneyToPay = betValue * MONEY_MULTIPLY[gameResult];				
				fm_set_user_money(id,money + betValue + moneyToPay);
				if(getCvar(CHAT_MESSAGES))
				client_print(0,print_chat,"%L (%L)",id,"VP_MSG_CHAT_WIN",name,moneyToPay,id,GAME_RESULTS_TEXT[gameResult]);
			}
		}		
	}
}
It works, but I'm not a coder, so it doesn't look nice. I think this part of code needs to be rewrote and optimized.
In your blackjack plugin is the same bug.
And here polish translation:
Code:
[pl]
VP_TITLE_MENU = Video Poker
VP_MSG_MOTD_LOST = Przegrales
VP_MSG_MOTD_WIN = Wygrales!
VP_MSG_MENU_EXIT = Wyjscie
VP_MSG_MENU_LOST = Przegrales i straciles $%.
VP_MSG_MENU_DRAW = Remis.
VP_MSG_MENU_WIN = Wygrales $%d.
VP_MSG_MENU_SHOW_TABLE = Pokaz stol
VP_MSG_MENU_PROCEED = Kontynuuj
VP_MSG_MENU_NEW_GAME = Graj ponownie
VP_MSG_MENU_WARN_MIN_BET = Musisz miec przynajmniej $%d aby zagrac
VP_MSG_MENU_BET_VALUE = Postawiona kwota: $%d
VP_MSG_MENU_RAISE_BET = Zwieksz kwote o $%d
VP_MSG_MENU_DOWN_BET = Zmniejsz kwote o $%d
VP_MSG_MENU_BET_ALL = Postaw wszystko
VP_MSG_MENU_START = Start
VP_MSG_CHAT_LOST = Gracz "%s" przegral $%d w pokera
VP_MSG_CHAT_WIN = Gracz "%s" wygral $%d w pokera
VP_FIGURE_NAME_ACE = As
VP_FIGURE_NAME_TWO = Dwojka
VP_FIGURE_NAME_THREE = Trojka
VP_FIGURE_NAME_FOUR = Czworka
VP_FIGURE_NAME_FIVE = Piatka
VP_FIGURE_NAME_SIX = Szostka
VP_FIGURE_NAME_SEVEN = Siodemka
VP_FIGURE_NAME_EIGHT = Osemka
VP_FIGURE_NAME_NINE = Dziewiatka
VP_FIGURE_NAME_TEN = Dziesiatka
VP_FIGURE_NAME_JACK = Walet
VP_FIGURE_NAME_QUEEN = Dama
VP_FIGURE_NAME_KING = Krol
VP_SUIT_NAME_SPADES = Pik
VP_SUIT_NAME_HEARTS = Kier
VP_SUIT_NAME_CLUBS = Trefl
VP_SUIT_NAME_DIAMONDS = Karo
VP_FIGURE_SUIT_CONNECTOR =
VP_HOLD = Zatrzymaj
VP_DISCARD = Wymien
VP_PAIR_OF_JACKS_OR_BETTER = Para waletow lub wiecej
VP_TWO_PAIRS = Dwie pary	
VP_THREE_OF_A_KIND = Trojka
VP_STRAIGHT = Strit
VP_FLUSH = Kolor
VP_FULL_HOUSE = Full
VP_FOUR_OF_A_KIND = Kareta
VP_STRAIGHT_FLUSH = Poker
VP_ROYAL_FLUSH = Poker Krolewski
I apologize for my weak english
Regards
F00X
F00X is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-04-2009 , 13:57   Re: Video Poker
Reply With Quote #25

F00X, i would never find that one (normally my code doesn't have any bug or misplaced code) . And I always use chat messages. Big thanks to you. Updated the main post. Please test it.

Last edited by joaquimandrade; 03-04-2009 at 14:01.
joaquimandrade is offline
F00X
Junior Member
Join Date: Mar 2009
Old 03-05-2009 , 02:37   Re: Video Poker
Reply With Quote #26

Now it works fine . But you still didn't fix your another plugin with same bug - A Blackjack Game.
F00X is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-05-2009 , 08:31   Re: Video Poker
Reply With Quote #27

Quote:
Originally Posted by F00X View Post
Now it works fine . But you still didn't fix your another plugin with same bug - A Blackjack Game.
You are right. I didn't checked it yet. Will do it today.
joaquimandrade is offline
IceBoy
New Member
Join Date: Oct 2008
Old 03-05-2009 , 22:14   Re: Video Poker
Reply With Quote #28

Help please

show backround... ok
don`t sow cards ( bad (

Code:
http://craiovaccs.no-ip.org/cstrike/blackjack/
cards/
images/
[IMG]http://img16.**************/img16/1583/sdsdsdsdsd.jpg[/IMG]

Last edited by IceBoy; 03-05-2009 at 22:20.
IceBoy is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-05-2009 , 22:42   Re: Video Poker
Reply With Quote #29

Quote:
Originally Posted by IceBoy View Post
Help please

show backround... ok
don`t sow cards ( bad (

Code:
http://craiovaccs.no-ip.org/cstrike/blackjack/
cards/
images/
The problem is that your site link is bigger than the space that i reserved for it. If you don't understand what i've said there's no problem. Use the attachment.
Attached Files
File Type: sma Get Plugin or Get Source (videopoker.sma - 835 views - 17.9 KB)
joaquimandrade is offline
Kont
Member
Join Date: Jan 2009
Old 03-05-2009 , 23:15   Re: Video Poker
Reply With Quote #30

Hey, this is nice plugin. It works for me. For the blank screen, try again typing videopoker then it turns to normal and works. I've used this plugin but players are cheating on them. They play on 1st round and won, in 2nd round they got AWP and shooting the enemies one by one. That's not fair. So I've decided not to use it. But it is nice plugin. I'd like it.
Kont 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 00:38.


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