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

AMX Poker 0.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Xanimos (85)
commonbullet
Veteran Member
Join Date: Oct 2005
Old 03-13-2006 , 22:29   AMX Poker 0.4
Reply With Quote #1

AMX Poker

CS menu based Video Poker plugin.
Requires cstrike module enabled.
commands:
amx_poker (console) or say poker to begin
cvars:
- amx_poker_deadonly [0-1] (1 default)
- amx_poker_enabled [0-1] (1 default)

Tested on Steam CZ, amxmodx 1.6


3 frames of a match of AMX Poker

1. initial hand state
2. the selected cards to be changed are marked with "X"
3. hand results


Code:
// Credits: // =========== // // * Inspired in Johnny's BlackJack AMX Plugin idea: //   <a href="http://djeyl.net/forum/index.php?showtopic=10455" target="_blank" rel="nofollow noopener">http://djeyl.net/forum/index.php?showtopic=10455</a> //   - Ported to AMXMODX by Lord Destros: //   <a href="http://forums.alliedmods.net/showthread.php?t=16047" target="_blank" rel="nofollow noopener">http://forums.alliedmods.net/showthread.php?t=16047</a> // // * Dealing & Hand Validation functions based on //   Kevin Kessler's Java Poker applet //   <a href="http://javaboutique.internet.com/Poker/" target="_blank" rel="nofollow noopener">http://javaboutique.internet.com/Poker/</a> // // * Whoever made that Video Poker game for my cheap cell phone //

versions:
0.4 corrected a mistake in detecting "full house" hand
0.3 some CZ bug(?), would make players buy as they press numbers with poker menu, it's been corrected
0.2 set a delay to get the cs right cash value at respawn
Attached Files
File Type: sma Get Plugin or Get Source (videopoker.sma - 4768 views - 10.1 KB)
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-13-2006 , 22:40  
Reply With Quote #2

I like it. Waiting for feedback before approval.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 03-13-2006 , 22:55  
Reply With Quote #3

Neat.
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-14-2006 , 04:18  
Reply With Quote #4

You should make the say command "/poker" ;]
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 03-14-2006 , 16:22  
Reply With Quote #5

I've found a small but relevant bug - cs_get_user_money function won't get the updated value at respawn, it would make the poker player lose the money that he wins in the beginning of the round if he draws when the round has just began.

I've corrected that by setting a delay to get hand scores if a new round has
began.

v3x, now you just say "poker" to start it. Thank you.

EDIT: Ops, I had confused say & command functions, now it's correct.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-14-2006 , 17:22  
Reply With Quote #6

Could you post a screen shot?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Silver Dragon
Veteran Member
Join Date: Jan 2005
Location: Chicago, Illinois
Old 03-14-2006 , 17:22  
Reply With Quote #7

This is actually a pretty nice plugin.Good Job
Silver Dragon is offline
Send a message via AIM to Silver Dragon Send a message via MSN to Silver Dragon Send a message via Yahoo to Silver Dragon
commonbullet
Veteran Member
Join Date: Oct 2005
Old 03-14-2006 , 21:44  
Reply With Quote #8

Thanks Silver Dragon, Suicid3 - I've included the screen shot.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
commonbullet
Veteran Member
Join Date: Oct 2005
Old 03-14-2006 , 22:05  
Reply With Quote #9

And thanks for the approval, Sucid3.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-14-2006 , 22:08  
Reply With Quote #10

Thanks for the co-operation on making the plugin better.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 07:46.


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