Jump to content

Donvalley

Members
  • Posts

    22
  • Joined

  • Last visited

About Donvalley

  • Birthday 31/12/1992

Donvalley's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. Can Someone Please Post Link
  2. Didn't Work I Am A Cop And It Says Sorry Only Cops Can Use This?? Help Please?? I Think Its This Bit! if ($mta.skin($1,$2).name != Cop) { mta.msg $1 $2 Only cops can use this | !halt } var %a = 0
  3. Well It Didn't
  4. Didn't Work I Am A Cop And It Says Sorry Only Cops Can Use This?? Help Please??
  5. Fixed It Please Lock Topic!!!!!
  6. This Is For !cash, !bank, When You Are At The Bank And Try To Do !bank- It Says Sorry You Must Be At The Bank?? on *:SIGNAL:mta.join:{ if ($mta.bank($1,$2) == 0) { writeini MTAScript.ini Bank $mta.name($1,$2) 2000 mta.msg $1 $2 Welcome to the server. You now have $ $+ 2000 in your bank } else mta.msg $1 Welcome to the server. You have $mta.bank($1,$2) in your bank } on *:SIGNAL:mta.part:{ writeini MTAScript.ini Cash $mta.name($1,$2) 0 } on *:SIGNAL:mta.kill:{ if ($mta.cash($1,$2) > 0) { if ($2 != $3 && $mta.name($1,$3) != Unknown) { writeini MTAScript.ini Cash $mta.name($1,$3) $calc($mta.cash($1,$2) + $mta.cash($1,$3)) mta.msg $1 $3 You have gained $mta.cash($1,$2) for killing $mta.name($1,$2) mta.msg $1 $2 You have lost $mta.cash($1,$2) because $mta.name($1,$3) killed you! writeini MTAScript.ini Cash $mta.name($1,$2) 0 } elseif ($2 == $3) { mta.msg $1 $2 You lost $mta.cash($1,$2) because you killed yourself writeini MTAScript.ini Cash $mta.name($1,$2) 0 } } } on *:SIGNAL:mta.command:{ var %a = $iif($4 == $null,$2,$iff($mta.getid($1,$4) == -1,$2,$mta.getid($1,$4))) if ($3 == !info) mta.say $1 No Information for you boy elseif ($3 == !cash) mta.say $1 $mta.name($1,%a) $+ 's Cash: $mta.cash($1,%a) elseif ($3 == !bank) mta.say $1 $mta.name($1,%a) $+ 's Bank: $mta.bank($1,%a) elseif ($3 == !bank+) { if ($mta.area($1,$2) == Bank && $mta.health($1,$2) > 0) { if ($mta.cash($1,$2) > 0) { if ($4 != $null) { if ($4 <= $mta.cash($1,$2)) { if ($4 isnum && $chr(46) !isin $4) { mta.say $1 $mta.name($1,$2) put $4 into their bank! writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $4) writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $4) } else mta.msg $1 $2 Error $4 must be numbers without points } else mta.msg $1 $2 You don't have that much money on hand } else { mta.say $1 $mta.name($1,$2) put $mta.cash($1,$2) into their bank! writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $mta.cash($1,$2)) writeini MTAScript.ini Cash $mta.name($1,$2) 0 } } else mta.msg $1 $2 You havn't got any money... } else mta.msg $1 $2 To use a !bank command you must be at the bank } elseif ($3 == !bank-) { if ($mta.area($1,$2) == -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 && $mta.health($1,$2) > 0) { if ($mta.bank($1,$2) > 0) { if ($4 != $null) { if ($4 <= $mta.bank($1,$2)) { if ($4 isnum && $chr(46) !isin $4) { mta.say $1 $mta.name($1,$2) took $4 from their bank! writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $4) writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) - $4) } else mta.msg $1 $2 Error $4 must be numbers without points } else mta.msg $1 $2 You don't have that much money in the bank } else { mta.say $1 $mta.name($1,$2) took $mta.bank($1,$2) from their bank writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $mta.bank($1,$2)) writeini MTAScript.ini Bank $mta.name($1,$2) 0 } } else mta.msg $1 $2 You havn't got any money... } else mta.msg $1 $2 To use a !bank command you must be at the bank } elseif ($3 == !give) { if ($2 != %a && $5 != $null) { if ($5 <= $mta.cash($1,$2)) { if ($5 isnum && $chr(46) !isin $5) { writeini MTAScript.ini Cash $mta.name($1,%a) $calc($mta.cash($1,%a) + $5) writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $5) mta.say $1 $mta.name($1,$2) gave $mta.name($1,%a) $5 } else mta.msg $1 $2 Error $5 must be numbers without points } else mta.msg $1 $2 You don't have that much cash to give } else mta.msg $1 $2 Synax: $3 <name> <amount> } } alias mta.cash { !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1) } alias mta.bank { !return $iif($readini(MTAScript.ini,Bank,$mta.name($1,$2)) == $null,0,$v1) }
  7. Works Perfect But Can You make It So Only Police Can Call FOr Backup??
  8. Works Perfect Thanks So Much Mex
  9. Didn't Work This Is The Code on *:SIGNAL:mta.command: { if ($3 == !backup) { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($mta.name($1,%a) != $null) && ($mta.vehicle($1,%a).name == Police) { mta.msg $1 %a The Police Force needs Backup at $mta.area($1,$2) $+ ! } !inc %a } } } Is This Right ?? It Just Does Nothing When You Type !backup>>??
  10. Just A Bank And Cash System Would Be Nice!
  11. Donvalley

    !jail Script

    Does Anyone Have A Working Jail Script So A Officer Can Jail A Suspct In The Jail Cells And He Gets $100 And If The Suspect Trys TO Leave Before His Time Is Up He Gets Killed??
  12. Nope Doesn't Work Thanks For Trying Though
  13. Found This On Website on *:SIGNAL:mta.enter: { if ($mta.skin($1,$2) == 2) && ($mta.vehicle($1,$2).name == Police) && (!$mta.passenger($1,$2)) { mta.msg $1 $2 Please Step Out Of The Police Car! $chr(126) 30 Secs Left! $+(!.timercopcar,$1,.,$2) 5 30 mta.slap $1 $2 } } on *:SIGNAL:mta.exit:{ $+(!.timercopcar,$1,.,$2) off } on *:SIGNAL:mta.part:{ $+(!.timercopcar,$1,.,$2) off } It There A Way To Make it After The 30 Seconds It Kills The Player/Or Slaps Him To Death After The 30 Seconds?? Thanks In Advance
  14. I Have Searched The Forum And Found 1 Backup Script For MTAVC But It Is Really Crappy (No Offence) But I Would Like One Where only cops can ask for backup, and that it only tells other cops in a PM. on *:SIGNAL:mta.command: { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($3 == !backup) mta.say $1 The Police Force needs Backup at $mta.area($1,$2) $+ ! elseif ($3 == !status) { if ($4 != $null) mta.say $1 $mta.name($1,$2) is $mta.status($1,$2).text $+ . else mta.say $1 $mta.name($1,%b) is $mta.status($1,%b).text $+ . } } Thanks In Advance, Jesse
  15. Works Good Thanks A Lot Guys!!!
×
×
  • Create New...