Advertisement
Luciano_fuentes

Send

Oct 11th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Sub Send_Event(ByRef Players() As Integer, ByVal nEvent As Byte)
  2.    
  3.     Dim LoopC As Long
  4.     Dim LoopX As Long
  5.     Dim Names As String
  6.    
  7.     If Can_EnterEvent(Players()) = False Then Exit Sub
  8.    
  9.     For LoopX = 1 To nEvent
  10.         Names = Names & ", " & UserList(Players(LoopX)).name
  11.     Next LoopX
  12.    
  13.     UserList(Players(1)).Events.ID_Send = Players(1)
  14.    
  15.     For LoopC = 2 To nEvent
  16.         UserList(Players(LoopC)).Events.ID_Send = Players(1)
  17.         Call WriteConsoleMsg(Players(LoopC), "El usuario " & UserList(Players(1)).name & " te ha invitado a jugar el evento automático " & Messages(nEvent) & "EQUIPO: [" & Names & "]", FontTypeNames.FONTTYPE_INFOBOLD)
  18.     Next LoopC
  19.  
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement