SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 06/12/2009, 12:36 PM   #1
Little Clucker
Join Date: Dec 2007
Posts: 4
Reputation: 0
Default [How To]Poker / Texas Hold'em System

don't care my nickname, it's... little wierdo.

just call me Khaki.

my question is.

How to make a Poker system in pawno?
i try and try but couldn't figure out, so i writing this topic.

i just did

new Deck[4][13];

this is the Poker deck.
which [4] is meaning Suit(Spade,Clover,Heart,Diamond)
and [13] is meaning Number(2~10,J,Q,K,Ace)

1, how can i define this suit for each number ?

and another one, 2, how can i shuffle this?

i got more question

how can i distribute this card for player(3~5) and no overlapped card

all i need is just figure this problems out

sorry ma bad eng. i'm korean
so i hope you answer under this topic.

Thank you
rhkdgml2 is offline  
Old 06/12/2009, 12:40 PM   #2
DeathOnaStick's Avatar
Join Date: May 2009
Posts: 1,081
Reputation: 27
Default Re: [How To]Poker / Texas Hold'em System

#define Spade 1
#define Clover 2
#define Heart 3
#define Diamond 4

#define Ace 1
#define Joker 11
#define Queen 12
#define King 13

That's how it should work...

2.) For shuffling just use "random('Number')"

3.) For checking if its overlapped... well... maybe you need to make values into the array... maybe playerid's...



Then you just need to check if the array has a value...

If this helps you, please thank me by giving me reputation points
DeathOnaStick is offline  

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Poker chip delivery mini-mission. svenny555 Filterscripts 8 07/10/2011 08:36 PM
[HELP] Robbery system, tax system, houseing system Commander_Shaw Help Archive 3 15/09/2010 04:18 AM
[Help] Poker System Mark k Help Archive 4 03/01/2010 11:22 AM
[HELP] help to make a poker. please. rhkdgml2 Help Archive 2 07/12/2009 01:01 PM
[REQ] Texas Roleplay Dripac Help Archive 1 01/09/2009 03:37 PM

All times are GMT. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.