Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ReWritting by evilbunnnie!
  2.  
  3.     'Check if they are hacking
  4.    If HasItem(Index, 1) < 10000 Then
  5.        HackingAttempt Index, "Packet Modification/Source Modification"
  6.        Exit Sub
  7.    End If
  8.    
  9.    'Check if the player is online
  10.     If FindChar(Name) = False Then
  11.         Call PlayerMsg(Index, "This player does not exist!", White)
  12.         Exit Sub
  13.     End If
  14.    
  15.     'Check if they have enough gold!
  16.    If HasItem(Index, 1) < Bounty Then
  17.        Call PlayerMsg(Index, "You don't have enough gold!", White)
  18.        Exit Sub
  19.    End If
  20.    
  21.    If GetVar(App.Path & "\data\Bounty.ini", Name, "CurrentBounty") = 0 Then
  22.        Call TakeInvItem(Index, Player(Index).Inv(m).Num, Bounty)
  23.        Call PutVar(App.Path & "\data\Bounty.ini", Name, "CurrentBounty", CStr(Bounty))
  24.        Call SendBounty(Index, Bounty, Name)
  25.        Call PlayerMsg(Index, "Your bounty of " & Bounty & " gold on " & Name & " has been set!", White)
  26.        Call GlobalMsg("A bounty of " & Bounty & " gold has been set on " & Name & ". Kill on sight!", White)
  27.    Else
  28.        Call PlayerMsg(Index, "This player already has a bounty upon their head!", White)
  29.    End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement