SA-MP Forums Archive
How to use OnPlayerGamble - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to use OnPlayerGamble (/showthread.php?tid=66063)



How to use OnPlayerGamble - smallo - 19.02.2009

Wondering if anyone has experience using this. I am trying to do it for a server but it isn't going to well. It's used in the UF.INC include. (Useful Functions)


Re: How to use OnPlayerGamble - Nimphious - 19.02.2009

chuck us a link for the include, and i'll have a look.


Re: How to use OnPlayerGamble - smallo - 19.02.2009

www.smallo.net/uf.zip


Re: How to use OnPlayerGamble - Nimphious - 19.02.2009

Ok, I had a squiz thru it, so what exactly do you wan't to do?


Re: How to use OnPlayerGamble - smallo - 19.02.2009

whenever someone does any form of gambling kick them from the casino. I have that code already i just want to know how to indentify if they have gambled or not.


Re: How to use OnPlayerGamble - Nimphious - 19.02.2009

Use,

1. IsplayerInArea

Check if the player is inside the casino and then kick...

If that doesn't work, I'll think of something else.


Re: How to use OnPlayerGamble - smallo - 19.02.2009

Quote:
Originally Posted by §TeddyBear§
Use,

1. IsplayerInArea

Check if the player is inside the casino and then kick...

If that doesn't work, I'll think of something else.
No i still want the casinos to be enterable and used fully i just dont want to be able to gamble thats why i asked whats this onplayergamble thing


Re: How to use OnPlayerGamble - Norn - 19.02.2009

Quote:
Originally Posted by [DRuG
Smallo ]
Quote:
Originally Posted by §TeddyBear§
Use,

1. IsplayerInArea

Check if the player is inside the casino and then kick...

If that doesn't work, I'll think of something else.
No i still want the casinos to be enterable and used fully i just dont want to be able to gamble thats why i asked whats this onplayergamble thing
Make money serverside, instead of clientside.

Easiest way


Re: How to use OnPlayerGamble - smallo - 19.02.2009

Quote:
Originally Posted by Norn
Quote:
Originally Posted by [DRuG
Smallo ]
Quote:
Originally Posted by §TeddyBear§
Use,

1. IsplayerInArea

Check if the player is inside the casino and then kick...

If that doesn't work, I'll think of something else.
No i still want the casinos to be enterable and used fully i just dont want to be able to gamble thats why i asked whats this onplayergamble thing
Make money serverside, instead of clientside.

Easiest way
example


Re: How to use OnPlayerGamble - Norn - 21.02.2009

Quote:
Originally Posted by [DRuG
Smallo ]
Quote:
Originally Posted by Norn
Quote:
Originally Posted by [DRuG
Smallo ]
Quote:
Originally Posted by §TeddyBear§
Use,

1. IsplayerInArea

Check if the player is inside the casino and then kick...

If that doesn't work, I'll think of something else.
No i still want the casinos to be enterable and used fully i just dont want to be able to gamble thats why i asked whats this onplayergamble thing
Make money serverside, instead of clientside.

Easiest way
example
I'll remake my tutorial when i have time.