[Include] gCasino - Scripted Casino's
#21

If someone is going to use YSI that is going to cause problems I had to hook this callback before YSI is included it looks like this. Keep in mind this was used before YSI was included so you'll probably have to do some preprocessor checks to determine how it should be hooked.

Keep in mind that this is to hook before YSI is included I have not tested it after YSI is included in which case you should use y_hooks for hooking instead.

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    OnPlayerClickPlayerTD(playerid, PlayerText:playertextid);
    return 1;
}

#if defined _ALS_OnPlayerClickPlayerTD
    #undef OnPlayerClickPlayerTextDraw
#else
    #define _ALS_OnPlayerClickPlayerTD
#endif
#define OnPlayerClickPlayerTextDraw OnPlayerClickPlayerTD
Reply
#22

But can i Just copy that scripts to my callback?
Reply
#23

Hey Grim! I'm getting a problem where, when I enter the game, I cant do anything and I get stuck inside it. I specifically dont have enough money for it, so the game must not have a fix for that. Just pointing it out, thanks for the updates, I will keep in touch.
Reply
#24

Try pressing Escape to close the menu, that should work.

If you want to script in a command, there are some methods for removing a player from a casino as well as checking if they are in the poker game menu.
Reply
#25

Quote:
Originally Posted by Grimrandomer
Посмотреть сообщение
Try pressing Escape to close the menu, that should work.

If you want to script in a command, there are some methods for removing a player from a casino as well as checking if they are in the poker game menu.
I did try pressing escape lol, but was still stuck. Keep improving while you have the time
Reply
#26

some kind of money known bug? these systems are vulnerable.
Reply
#27

Quote:
Originally Posted by Kenshin869
Посмотреть сообщение
some kind of money known bug? these systems are vulnerable.
As this is scripted, it will work with anti-cheat money system, so the winning's cant be hacked etc.
Reply
#28

How to do, if player don't have a money, he can't to bet or win money, just i don't want that player can go to -
Reply
#29

Quote:
Originally Posted by audriuxxx
Посмотреть сообщение
How to do, if player don't have a money, he can't to bet or win money, just i don't want that player can go to -
That's exactly what we are saying. There's a bug that prevents the player from exiting the game. It should be fixed soon.
Reply
#30

do you even know how to play poker jacks or better id pair of jacks not just 1 jack





can you update the script
Reply
#31

Hey Grim got probleme My money got like 9999999999 after its drop to 0 tf is the probleme?
Reply
#32

Hi,

Why this:
Код:
#if defined _ALS_OnGameModeInit
  #undef OnGameModeInit
#else
  #define _ALS_OnGameModeInit
#endif
And why do you try to call things like '_gCasino_OGMI' get called but never get defined?
Thank you for your guidance, I am trying to use this script but I'm not quite sure to understand this part, I have done research but can't understand.
Reply
#33

Quote:
Originally Posted by blinkpnk
Посмотреть сообщение
Hi,

Why this:
Код:
#if defined _ALS_OnGameModeInit
  #undef OnGameModeInit
#else
  #define _ALS_OnGameModeInit
#endif
And why do you try to call things like '_gCasino_OGMI' get called but never get defined?
Thank you for your guidance, I am trying to use this script but I'm not quite sure to understand this part, I have done research but can't understand.
That's an old method for hooking callbacks. However, there's nothing wrong, it would work anyway.
Reply
#34

Quote:
Originally Posted by Spmn
Посмотреть сообщение
That's an old method for hooking callbacks. However, there's nothing wrong, it would work anyway.
What method do you suggest?
What is I just change 'OnGamemodeInit' to another function name and call that from the original OnGamemodeInit would that work?

And what other code will I be able to delete.

I'm really not sure what the '_gCasino_OGMI' are supposed to do.

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)