Re: gCasino - Scripted Casino's -
Pottus - 09.02.2014
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
Re: gCasino - Scripted Casino's -
audriuxxx - 09.02.2014
But can i Just copy that scripts to my callback?
Re: gCasino - Scripted Casino's -
Aerotactics - 09.02.2014
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.
Re: gCasino - Scripted Casino's -
Grimrandomer - 09.02.2014
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.
Re: gCasino - Scripted Casino's -
Aerotactics - 09.02.2014
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
Re: gCasino - Scripted Casino's -
Kenshin869 - 10.02.2014
some kind of money known bug? these systems are vulnerable.
Re: gCasino - Scripted Casino's -
Grimrandomer - 10.02.2014
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.
Re: gCasino - Scripted Casino's -
audriuxxx - 10.02.2014
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 -
Re: gCasino - Scripted Casino's -
Aerotactics - 13.02.2014
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.
Re: gCasino - Scripted Casino's -
PSYCHOBABYKILLA - 10.04.2015
do you even know how to play poker jacks or better id pair of jacks not just 1 jack
can you update the script
Re : gCasino - Scripted Casino's -
tysanio - 10.08.2015
Hey Grim got probleme My money got like 9999999999 after its drop to 0 tf is the probleme?
Re: gCasino - Scripted Casino's -
rt-2 - 07.09.2016
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.
Re: gCasino - Scripted Casino's -
Spmn - 07.09.2016
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.
Re: gCasino - Scripted Casino's -
rt-2 - 07.09.2016
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