English Get automatically VIP in Hc Script.

2 replies
Goto Page
To the start Previous 1 Next To the start
Up
Man Of Steel
User
Offline Off
Hello everyone,

If anybody play at least 2 days he will automatically get Vip in Hc Admin Script but if anybody is mod1 mod2 admin so he don't get vip and when anybody auto-vip he will reveive msg (i will edit msg myself) and if anybody not playing server till 4 days he will a=automatically remove and make user.

Anybody can make and give me this lua ? i see auto-vip lua in a lot of servers.I tried to find in search but there is no auto-vip script for hc admin script. please help me
FRiendly boYy.
02.06.18 11:35:16 am
Up
princeofpersia
User
Offline Off
add this one in hc.moderation.init() in moderation lua

Code:
1
hc.add_menu_command("Get VIP", hc.moderation.GVIP_say_command, hc.GETVIP_LEVEL, hc.COMMAND_MENU_KEY)


and add this in a free place of moderation lua

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function hc.moderation.GVIP_say_command(p)
     local name = player(p, "name")
    local usgn = hc.get_usgn(p)
     
if usgn > 0 then
     if hc.get_level(p) ~= hc.USER then
     hc.error(p, "You Have Vip or Higher RANK!")
     else
     if stats(player(p, "usgn"), "secs") >= (3600 * 48) then
     hc.init_users() -- Reload the users file
    hc.users[usgn] = { name = name, level = hc.VIP }
    hc.save_users()
    hc.event(p, "You are now VIP.")
     else
     hc.error(p, "Frist Play 12 Hours!")
     end
end
     else
     hc.error(p, "You need USGN for VIP!")
end
end


whit this code you need to use F2 menu . but if you want auto vip with minute hook i can make it for u tonight
02.06.18 05:18:48 pm
Up
Man Of Steel
User
Offline Off
prince yes i want in minutes if anybody play 2 days he get automatically hc.VIP rank
send me at my discord maybe you know me i'm Alone~.
Anyways thanks a lot.
FRiendly boYy.
To the start Previous 1 Next To the start