SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/07/2014, 01:01 PM   #1
friezakinght
Big Clucker
 
friezakinght's Avatar
 
Join Date: Dec 2011
Posts: 160
Reputation: 7
Default Dice command

Please help me create a command like /dice (player ID) (amount of money)
For example /dice 2 30000
ID 2 will have this message: "Deadly_Evil challenged you to dice for $30000. /roll to dice and /no to decline."
If you do /roll you will dice for $30000 Then a ClientMessage comes: "Deadly_Evil diced 4 and guy with id 2 diced 3 so Deadly_Evil won $30000 ! ".

if you do /no then nothing.

Is this really possible?
If its please tell me how i can make one (or make one for me please)
friezakinght is offline   Reply With Quote
Old 10/07/2014, 01:08 PM   #2
KayJ
Gangsta
 
KayJ's Avatar
 
Join Date: Apr 2014
Posts: 678
Reputation: 64
Cool Re: Dice command

These help you:
http://forum.sa-mp.com/showthread.php?t=159415
http://forum.sa-mp.com/showthread.php?t=412532
+Rep if helps
PS: Sorry for late responce
KayJ is offline   Reply With Quote
Old 10/07/2014, 02:01 PM   #3
Pupak
Little Clucker
 
Join Date: Apr 2013
Posts: 48
Reputation: 13
Default Re: Dice command

  • It requires sscanf2 and y_commands.
  • Dice numbers can be from 1 to 6 and can not be the same.
  • When player invites someone to dice, dialog shows up to invited player, so it is more likely that invited player will respond faster than using /yes & /no commands.

I hope it will help you.
http://pastebin.com/XRz2ZNjF
Pupak is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [0.3x] Dice filterscript first! Nautica Filterscripts 10 02/02/2013 12:46 PM
Help - Dice Game Compton Help Archive 2 22/07/2011 05:12 PM
[FilterScript] Roll The Dice 0.1 ScottCFR Filterscripts 3 13/07/2010 09:45 AM
[SOLVED BY DICE] IamNotKoolllll Help Archive 11 25/04/2010 06:31 PM


All times are GMT. The time now is 04:33 PM.


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