Vencimiento de admins 1.0d [09/09/14]
#76
(15/05/2016, 03:27 AM)jesusfiji escribió: da error el compilado y descargue el sma para compilar y tira este error:
/tmp/textvKO6TL.sma(3) : fatal error 100: cannot read from file: "unixtime"

Compilation aborted.
1 Error.
https://forums.alliedmods.net/showthread.php?t=91915
Descargate este y pegarlo en la carpeta scripting/include ami me anduvo así.
Responder
#77
pero descargando el compilado de alan? osea con el amxx de alan mas ese q me pasaste?
Una mano lava la Otra y las 2 lavan la cara! Approved
Responder
#78
Para compilarlo necesitas esto:
https://forums.alliedmods.net/showthread.php?t=91915

Te bajas el unixtime.inc que aparece en el post.
Lo pones en la carpeta Include (addons/amxmodx/scripting/include)
Luego lo compilas y listo.
Sino puedes optar por bajarte el compilado. [.amxx]
Responder
#79
(15/05/2016, 02:20 PM)Web Controller escribió: Para compilarlo necesitas esto:
https://forums.alliedmods.net/showthread.php?t=91915

Te bajas el unixtime.inc que aparece en el post.
Lo pones en la carpeta Include (addons/amxmodx/scripting/include)
Luego lo compilas y listo.
Sino puedes optar por bajarte el compilado. [.amxx]
No funciona el "Descargar Compilado".
Responder
#80
Triste 
Tengo un problema respecto al uso de este plugin, cuando activo la opcion de vencimiento de un admin, este expira, pero 2 dias antes de la fecha escojida (o eso me parece), ademas hace expirar a todos los admins listados en el user.ini sin necesidad de averles agregado una fecha de vencimiento.

No se si estoy haciendo algo mal o el plugin no es funcional por el momento Triste
Responder
#81
Ese SPAM de la firma y encima le pones publicidad ni te lo robo.
Modificaste algo del plugin?
Responder
#82
Pregunta 
(02/12/2016, 03:37 PM)Niper.-. escribió: Ese SPAM de la firma y encima le pones publicidad ni te lo robo.
Modificaste algo del plugin?

Si le hice una modificacion respecto a los textos, quiza por algun momento toque algo que no deberia ser, dejo adjunto el .sma


Archivos adjuntos
.sma   Descargar AMXX / vencimientos.sma (Tamaño: 2.64 KB / Descargas: 110)
Responder
#83
Es perfectoo el plugin RainbowRainbowRainbow
Responder
#84
alfin dure demaciado tiempo buscando y no me funcionaba ninguno gracias Roflmao
Responder
#85
Buen aporteExcitedeyes lo usare en mi servidor, espero y me sirvaProud
[Imagen: 76561198258768928.png][Imagen: AddFriend.png]
Responder
#86
(27/06/2017, 09:36 PM)alanfx escribió: Buen aporteExcitedeyes lo usare en mi servidor, espero y me sirvaProud

Deja de revivir post hijo de puta x2

Responder
#87
una pregunta esto es por ID o tambien se puede por nombres?

EDIT: Sorry, ya esta, ya lo vi
La Berga bale Bida
Responder
#88
Es el sma solamente? o tener el sma y compilarlo como amxx tambien?

Tiene error me dice que no puede compilar porque? tiene 1 ERROR solucionalo

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/text44Uvp5.sma(3) : fatal error 100: cannot read from file: "unixtime"

Compilation aborted.
1 Error.
Responder
#89
(12/08/2017, 02:15 PM)Blue ^^ escribió: Es el sma solamente? o tener el sma y compilarlo como amxx tambien?

Tiene error me dice que no puede compilar porque? tiene 1 ERROR solucionalo

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/text44Uvp5.sma(3) : fatal error 100: cannot read from file: "unixtime"

Compilation aborted.
1 Error.

Te falta colocar el INC unixtime Genius
[Imagen: 76561198350936449.png]

Cita:Los precios en la moneda venezolana se fijarán a partir de la reconversión monetaria y valdrá mucho menos de lo que cuesta una Cachapa con queso.
Responder
#90
¿Alguien que pueda modificarlo junto a un Prefixes?

EJEMPLO:

"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" "[MI PREFIX]" "00/00/0000"
Whatever No documentes el problema, arréglalo.
Responder
#91
(12/08/2017, 07:48 PM)Rog3r escribió: ¿Alguien que pueda modificarlo junto a un Prefixes?

EJEMPLO:

"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" "[MI PREFIX]" "00/00/0000"

creo que utiliza parse() de ser asi fijate de agregar una linea más con una variable tipo prefix[32] y no la utilices y listo xd
Responder
#92
Soy nuevo me ayudan como coloco el unixtime.inc Donde se coloca por favor ayuda

ya que me dice esos errores al compilar el amxx
Responder
#93
Hola ya tengo el plugin pero cuando quiero ponerle fecha al admin y pongo /vencimiento. No me aparece nada pero cuando no le pongo fecha si me dice algo osea [admin] Tu admin no tiene fecha. AYUDA!! es urgente

Yo se los pongo por nombre
Responder
#94
Hola, no se si alguien lea esto pero no se le puede poner un comando para que el admin sepa la fecha de su vencimiento.
Responder
#95
(07/10/2017, 05:20 PM)wlmraziel escribió: Hola, no se si alguien lea esto pero no se le puede poner un comando para que el admin sepa la fecha de su vencimiento.

/vencimiento -> Le especificara cuando se le acabara el admin (si tiene fecha), si no no le dira nada
Aprendiendo!

Mi Comunidad: http://facebook.com/groups/CsParaisoComunidad/

Me ayudarias muchisimo donandome algo para poder abrir mi comunidad, te lo agradeceria muchisimo!

Click Aqui!
Responder
#96
Hay alguna manera de que el admin apenas se meta al servidor y escoja team este le indique cuando vence su admin sin la necesidad de escribir /vencimiento ?
Responder
#97
(16/11/2017, 03:24 PM)San4es escribió: Hay alguna manera de que el admin apenas se meta al servidor y escoja team este le indique cuando vence su admin sin la necesidad de escribir /vencimiento ?

Así, saludos Lengua

Código PHP:
#include <amxmodx>
#include <amxmisc>
#include <unixtime>
#include <hamsandwich>

new Trie:g_tVencimiento

public plugin_init()
{
    
register_plugin("Vencimiento de admins""1.0d""alan_el_more")
    
    
g_tVencimiento TrieCreate()
        
    
CheckAdmins()
    
    
register_clcmd("say /vencimiento""ClcmdVencimiento")
    
    
RegisterHam(Ham_Spawn"player""fw_spawn"1)
}

public 
fw_spawn(id)
{
    if(!
is_user_connected(id))
        return 
PLUGIN_HANDLED;
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
        
    
set_task1.0"ClcmdVencimiento"id );
    
    return 
PLUGIN_HANDLED
}

public 
ClcmdVencimiento(idlevelcid)
{
    if(!
is_user_admin(id))
        return 
PLUGIN_HANDLED
        
    
new szAuth[32], szExp[12]
    
get_user_authid(idszAuthcharsmax(szAuth))
    
    if(!
TrieGetString(g_tVencimientoszAuthszExpcharsmax(szExp)))
    {
        
get_user_name(idszAuthcharsmax(szAuth))
        
        if(!
TrieGetString(g_tVencimientoszAuthszExpcharsmax(szExp)))
        {
            
get_user_ip(idszAuthcharsmax(szAuth), 1)
            
            
TrieGetString(g_tVencimientoszAuthszExpcharsmax(szExp))
        }
    }
        
    if(
szExp[0])
        
ChatColor(id"^4[Admin]^1 Tu admin vence el^3 %s"szExp)
    else
        
ChatColor(id"^4[Admin]^1 Tu admin no tiene un vencimiento determinado")
    
    return 
PLUGIN_HANDLED
}

CheckAdmins()
{
    new 
szFile[64], szData[160], szAuth[44], szPw[32], szAccess[32], szFlags[32], szDate[12]
    new 
iLinebAdmRemoved
    
    get_configsdir
(szFilecharsmax(szFile))
    
add(szFilecharsmax(szFile), "/users.ini")
        
    new 
file fopen(szFile"rt")
    
    while(!
feof(file))
    {
        
fgets(fileszDatacharsmax(szData))
        
        
trim(szData)
        
        
iLine++
        
        if(!
szData[0] || szData[0] == ';')
            continue
        
        
parse(szDataszAuthcharsmax(szAuth), szPwcharsmax(szPw), szAccesscharsmax(szAccess), szFlagscharsmax(szFlags), szDatecharsmax(szDate))
        
        if(!
szDate[0])
            continue
        
        
replace_all(szDatecharsmax(szDate), "/"" ")
            
        new 
szDay[3], szMonth[3], szYear[5]
        
parse(szDateszDaycharsmax(szDay), szMonthcharsmax(szMonth), szYearcharsmax(szYear))
        
        if(
get_systime() >= TimeToUnix(str_to_num(szYear), str_to_num(szMonth), str_to_num(szDay), 000UT_TIMEZONE_SERVER))
        {
            
formatex(szDatacharsmax(szData), ";ADMIN VENCIDO - ^"%s^" en la fecha %s/%s/%s"szAuthszDayszMonthszYear)
            
write_file(szFileszDataiLine 1)
            
            
bAdmRemoved true
        
}
        else
        {            
            
replace_all(szDatecharsmax(szDate), " ""/")
            
            
TrieSetString(g_tVencimientoszAuthszDate)
        }
    }
    
    if(
bAdmRemoved)
    {
        
server_cmd("amx_reloadadmins")
        
server_exec()
    }
    
    
fclose(file)
}

stock ChatColor(id, const input[], any:...)
{
    static 
szMsg[191], msgSayText
    
    
if(!msgSayText)
        
msgSayText get_user_msgid("SayText")
    
    
vformat(szMsg190input3)
    
    
message_begin(id MSG_ONE_UNRELIABLE MSG_BROADCASTmsgSayText, .player id)
    
write_byte(id id 33)
    
write_string(szMsg)
    
message_end()

Responder
#98
cuando se vence 1 admin, desactiva todos los admin!
[Help me] Cutecry
Whatever Típico: Cuando se enteran que eres de Sistemas... Whatdone
[Imagen: shiPJV8.png]
Responder
#99
Publicá tu users.ini
[Imagen: paypalqr.png]
Responder
; Users configuration file
; File location: $moddir/addons/amxmodx/configs/users.ini

; Line starting with ; is a comment

; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)

; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive. eg: if you set it so the name "Ham"
; is protected and case sensitive (flags "k" only), then anybody
; can use the names "haM", "HAM", "ham", etc, but not "Ham"

; Password:
; Add to your autoexec.cfg: setinfo _pw "<password>"
; Change _pw to the value of amx_password_field

; Format of admin account:
; <name|ip|steamid> <password> <access flags> <account flags>

; Examples of admin accounts:
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"

"loopback" "" "abcdefghijklmnopqrstu" "de"

;ADMIN FULL
; "[OWNER]" Flags = abcdefghijklmnopqrstu

;NO TIENE INMUNIDAD
; "[CS' MAGDA]" Flags = bcdefijgh

; NO PUEDE CAMBIAR DE MAPA
; "[MODERATOR]" Flags = bcdeig

; NO PUEDE BANEAR
; "[VIP]" Flags bceijh

"STEAM_0:0:180569280" "golden" "bcdefghijklno" "ca" "09/02/2018"
"STEAM_0:1:126096493" "golden" "abcdefghijklmnopqrstu" "ca" "08/02/2018"
Whatever Típico: Cuando se enteran que eres de Sistemas... Whatdone
[Imagen: shiPJV8.png]
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)