Jump to content

The Casino Script.


WestCoast

Recommended Posts

I Made A Casino Script.

But Its Not Working So Good.

If I Got $0 Cash And Lose With The Casino.

It Goes To: -$2500

Someone Plz Help Me With This.

This Is What I Wrote:

on *:SIGNAL:mta.command: {
 if ($3 = !spin) {
 if ($mta.area($1,$2) == Malibu) {
   var %a = $rand(1,2)
   .timer 1 0 mta.say $1 The Wheel Is Spinning !
   .timer 1 2 mta.say $1 The Wheel Is Starting To Stop !
   .timer 1 3 mta.say $1 The Wheel Stopped !
   .timer 1 5 mta.say $1 $iif(%a == 1,$mta.name($1,$2) Won ($5000),$mta.name($1,$2) Lost ($2500))
   !writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + 5000)
   else !writeini !writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - 2500)
 }
else {
mta.msg $1 $2 You Are Not At Malibu.
 }
}
}

}
alias mta.cash {  
 !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1) 
} 

Plz Help Me.

Link to comment

Here is one that won't allow you to play if you have less than 2500$

on *:SIGNAL:mta.command: {
 if ($3 = !spin) {
   if (Malibu !isin $mta.area($1,$2)) mta.msg $1 $2 You Are Not At Malibu.
   elseif ($mta.cash($1,$2) < 2500) mta.msg $1 $2 You have not enough cash to play
   else {
     var %a = $rand(1,2)
     .timer 1 0 mta.say $1 The Wheel Is Spinning !
     .timer 1 2 mta.say $1 The Wheel Is Starting To Stop !
     .timer 1 3 mta.say $1 The Wheel Stopped !
     .timer 1 5 mta.say $1 $mta.name($1,$2) $iif(%a == 1,Won ($5000),Lost ($2500))
     !writeini MTAScript.ini Cash $mta.name($1,$2) $iif(%a == 1,$calc($mta.cash($1,$2) + 5000),$calc($mta.cash($1,$2) - 2500))
   }
 }
}
alias mta.cash !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1)

Here is one that will allow you to play with any cash but will take everything if you have less than 2500$

on *:SIGNAL:mta.command: {
 if ($3 = !spin) {
   if (Malibu !isin $mta.area($1,$2)) mta.msg $1 $2 You Are Not At Malibu.
   else {
     var %a = $rand(1,2)
     .timer 1 0 mta.say $1 The Wheel Is Spinning !
     .timer 1 2 mta.say $1 The Wheel Is Starting To Stop !
     .timer 1 3 mta.say $1 The Wheel Stopped !
     .timer 1 5 mta.say $1 $mta.name($1,$2) $iif(%a == 1,Won ($5000),Lost ($2500))
     !writeini MTAScript.ini Cash $mta.name($1,$2) $iif(%a == 1,$calc($mta.cash($1,$2) + 5000),$iif($mta.cash($1,$2) > 2500,$calc($mta.cash($1,$2) - 2500),0))
   }
 }
}
alias mta.cash !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1)

Link to comment
  • 1 month later...
hmm the casino script works fine only for example: blahblah ahs won 2500 cash (i dont egt the cash) thats wat i mean if it says balhblah lose 2500$ i dont lose antyhing

cause you dont have a cash system?.. it wont add/take cash on your screen in the top right corner, that's in script.. it writes an ini with cash

Link to comment
  • 3 years later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...