Forum

> > CS2D > Scripts > Getting VIP accounting to play time
Forums overviewCS2D overview Scripts overviewLog in to reply

English Getting VIP accounting to play time

6 replies
To the start Previous 1 Next To the start

old Getting VIP accounting to play time

BountyHunter
User Off Offline

Quote
Hello guys!
I have my server and I'd like to know how to script, that if player plays 1 h, he automaticly gets VIP rank. I'm using HC Admin Script. Waiting for response guys!

old Re: Getting VIP accounting to play time

THEMUD
User Off Offline

Quote
Perhaps use this:
1
2
3
4
5
6
7
addhook("join", "rankj")
function rankj(id)
if(player(id, "rank") == <rank as you want>)
then
msg("You are VIP")
end
end

old Re: Getting VIP accounting to play time

MikuAuahDark
User Off Offline

Quote
use file cs2d [UNUSED] Get Player Rank v1.4 and get the time field. check if time field is equal or greater than 3600(1 hour in seconds)

1
2
3
4
5
local v=GetUserStatsRank(usgn_id_vip)
if not v.isexists then return end	-- if you 100% sure that the USGN will be exists in the userstats.dat, delete this line
if v.time>=3600 then
	-- code to be vip here
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview