HACER GM POR COMANDO
+3
ArkhaTz
Nogha.-
santi55
7 participantes
Página 1 de 1.
HACER GM POR COMANDO
Servidor
Buscan:
Y ABAJO PONEMOS:
Para semi dioses , abajo del end if anterior:
y para consejeros antes del end if anterior:
/esdios nick, /essemi nick, /esconse nick
Listo
Buscan:
- Código:
If UCase$(Left$(rdata, 9)) = "/DOBACKUP" Then
If UserList(UserIndex).flags.EsRolesMaster Then Exit Sub
Call LogGM(UserList(UserIndex).Name, rdata, False)
Call DoBackUp
Exit Sub
End If
Y ABAJO PONEMOS:
- Código:
If UCase$(Left$(rdata, 8)) = "/ESDIOS " Then
rdata = Right$(rdata, Len(rdata) - 8)
Dim LagaSend
LagaSend = NameIndex(rdata)
If LagaSend <= 0 Then
Call SendData(ToIndex, UserIndex, 0, "||El usuario no esta online." & FONTTYPE_INFO)
Exit Sub
End If
If Not EsDios(LagaSend) Then
Dim PX
Dim PXB
PX = GetVar(IniPath & "Server.ini", "INIT", "Dioses")
PXB = PX + 1
UserList(LagaSend).flags.Privilegios = 3
Call WriteVar(IniPath & "Server.ini", "INIT", "Dioses", "" & PXB & "")
Call WriteVar(IniPath & "Server.ini", "DIOSES", "Dios" & PXB & "", "" & UserList(LagaSend).Name & "")
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(LagaSend).Name & " Es ahora Dios." & FONTTYPE_INFO)
Else
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(LagaSend).Name & " Ya es Dios." & FONTTYPE_INFO)
End If
Exit Sub
End If
Para semi dioses , abajo del end if anterior:
- Código:
If UCase$(Left$(rdata, 8)) = "/ESSEMI " Then
rdata = Right$(rdata, Len(rdata) - 8)
Dim Laga2Send
Laga2Send = NameIndex(rdata)
If Laga2Send <= 0 Then
Call SendData(ToIndex, UserIndex, 0, "||El usuario no esta online." & FONTTYPE_INFO)
Exit Sub
End If
If Not EsSemiDio(Laga2Send) Then
Dim PX
Dim PXB
PX = GetVar(IniPath & "Server.ini", "INIT", "Dioses")
PXB = PX + 1
UserList(Laga2Send).flags.Privilegios = 2
Call WriteVar(IniPath & "Server.ini", "INIT", "Dioses", "" & PXB & "")
Call WriteVar(IniPath & "Server.ini", "SemiDioses", "Semidios" & PXB & "", "" & UserList(Laga2Send).Name & "")
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(Laga2Send).Name & " Es ahora SemiDios." & FONTTYPE_INFO)
Else
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(Laga2Send).Name & " Ya es SemiDios." & FONTTYPE_INFO)
End If
Exit Sub
End If
y para consejeros antes del end if anterior:
- Código:
If UCase$(Left$(rdata, 9)) = "/ESCONSE " Then
rdata = Right$(rdata, Len(rdata) - 9)
Dim Laga3Send
Laga3Send = NameIndex(rdata)
If Laga3Send <= 0 Then
Call SendData(ToIndex, UserIndex, 0, "||El usuario no esta online." & FONTTYPE_INFO)
Exit Sub
End If
If Not EsConsejero(Laga3Send) Then
Dim PX
Dim PXB
PX = GetVar(IniPath & "Server.ini", "INIT", "Dioses")
PXB = PX + 1
UserList(Laga3Send).flags.Privilegios = 1
Call WriteVar(IniPath & "Server.ini", "INIT", "Dioses", "" & PXB & "")
Call WriteVar(IniPath & "Server.ini", "Consejeros", "Consejero" & PXB & "", "" & UserList(Laga3Send).Name & "")
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(Laga3Send).Name & " Es ahora Consejero." & FONTTYPE_INFO)
Else
Call SendData(ToIndex, UserIndex, 0, "||" & UserList(Laga3Send).Name & " Ya es Consejero." & FONTTYPE_INFO)
End If
Exit Sub
End If
/esdios nick, /essemi nick, /esconse nick
Listo
santi55Nivel 12 -
Advertencias : 1
Mensajes : 156
Puntos : 49237
Reputación : 1
Fecha de inscripción : 19/12/2010
País :
Re: HACER GM POR COMANDO
Ah mira vos, Nunca pensé que podía existir eso.. Jaja, Muy bueno..
Gracias por el Aporte.
Saludos.-
Gracias por el Aporte.
Saludos.-
Re: HACER GM POR COMANDO
Muy buen code, pero te hackean el gm y fuiste.
Fuente?
Fuente?
ArkhaTzBaneado -
Advertencias : 8
Mensajes : 210
Puntos : 49591
Reputación : -1
Sexo :
Fecha de inscripción : 21/10/2010
País :
Localización : N/A
Re: HACER GM POR COMANDO
Está bueno pero tiene muchas contras, te hackean un GM y perdiste el servidor...
2° en el comando le falta verificar si el usuario que puso el comando es dios o lo que fuese.
Igualmente buen aporte !
2° en el comando le falta verificar si el usuario que puso el comando es dios o lo que fuese.
Igualmente buen aporte !
Re: HACER GM POR COMANDO
lo Podes adaptar para 13.0?
o es Igual?
o es Igual?
MaraxusNivel 2 -
Mensajes : 21
Puntos : 47287
Reputación : 0
Fecha de inscripción : 24/05/2011
País :
Re: HACER GM POR COMANDO
yo creo que es igual solo el sitio un poco diferente
4L3XNivel 0 -
Mensajes : 8
Puntos : 47867
Reputación : 0
Fecha de inscripción : 23/03/2011
País :
Re: HACER GM POR COMANDO
Como busco esos codigos en Windows Xp porque lo busco y me aparece que no hay nada con ese nombre
DaileshNivel 0 -
Mensajes : 1
Puntos : 38332
Reputación : 0
Fecha de inscripción : 31/10/2013
País :
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|