Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub Label1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, y As Single)
  2.  
  3.     Dim Nick As String
  4.  
  5.     If Not InStr(charlist(FrmMain.CharFichado).Nombre, "<") > 0 Then
  6.         Nick = charlist(FrmMain.CharFichado).Nombre
  7.     Else
  8.         Nick = Left$(charlist(FrmMain.CharFichado).Nombre, InStr(charlist(FrmMain.CharFichado).Nombre, " <"))
  9.     End If
  10.  
  11.     If Index = 0 Then
  12.  
  13.         Call WriteRequestCharInfo(RTrim(Nick))
  14.  
  15.     ElseIf Index = 1 Then
  16.  
  17.         Call WriteRequestCharInventory(RTrim(Nick))
  18.  
  19.     ElseIf Index = 2 Then
  20.  
  21.         Call WriteRequestCharBank(RTrim(Nick))
  22.  
  23.     ElseIf Index = 3 Then
  24.  
  25.         Call WriteWarpChar(RTrim(Nick), 1, 50, 50)
  26.  
  27.     ElseIf Index = 4 Then
  28.  
  29.         Call WriteKick(RTrim(Nick))
  30.  
  31.     ElseIf Index = 5 Then
  32.  
  33.         Unload Me
  34.  
  35.     ElseIf Index = 6 Then
  36.  
  37.         tStr = InputBox("Escriba el motivo de la advertencia.", "Advertir a " & RTrim(Nick))
  38.         Call ParseUserCommand("/ADVERTENCIA " & RTrim(Nick) & "@" & tStr)
  39.  
  40.     ElseIf Index = 7 Then
  41.  
  42.         tStr = InputBox("Escriba el motivo de la pena.", "Carcel a " & RTrim(Nick))
  43.         tStr = tStr & "@" & InputBox("Indique el tiempo de condena (entre 0 y 60 minutos).", "Carcel a " & Nick)
  44.         Call ParseUserCommand("/CARCEL " & RTrim(Nick) & "@" & tStr)
  45.  
  46.     ElseIf Index = 8 Then
  47.  
  48.         Call WriteExecute(RTrim(Nick))
  49.  
  50.     ElseIf Index = 9 Then
  51.  
  52.         tStr = InputBox("Escriba el motivo del ban.", "BAN a " & RTrim(Nick))
  53.         If MsgBox("¿Seguro desea banear a " & RTrim(Nick) & "?", vbYesNo, "Atencion!") = vbYes Then Call WriteBanChar(RTrim(Nick), tStr)
  54.  
  55.     ElseIf Index = 10 Then
  56.  
  57.         If MsgBox("¿Seguro desea banear el disco a " & RTrim(Nick) & "?", vbYesNo, "Atencion!") = vbYes Then Call WriteBanHD(RTrim(Nick))
  58.  
  59.     ElseIf Index = 11 Then
  60.  
  61.         Call WriteReviveChar(RTrim(Nick))
  62.  
  63.     End If
  64.  
  65.     Unload Me
  66.  
  67. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement