Forum

> > CS2D > Scripts > VIP Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English VIP Script

3 replies
To the start Previous 1 Next To the start

old Re: VIP Script

DC
Admin Off Offline

Quote
Define "VIP"? Just a VIP as in "as_"-maps (the guy with 200 hp and pistol only) or someone with special abilities/options?

You could use the cs2d lua cmd stats system if the player is logged in via U.S.G.N. - otherwise you have to count the play-time yourself. E.g. by using the cs2d lua hook second hook.

This is how you can ceck if the player with the ID usgnid has been on the server for longer than one hour (60 * 60 seconds = 60 minutes = 1 hour)
1
2
3
4
5
if stats(usgnid, "exists") then
	if (stats(usgnid, "secs") >= (60*60)) then
		-- do your VIP stuff
	end
end

old Re: VIP Script

Mami Tomoe
User Playing CS2D

Quote
user DC has written
Define "VIP"? Just a VIP as in "as_"-maps (the guy with 200 hp and pistol only) or someone with special abilities/options?


Hold up... are you saying its possible to create the 200HP VIP more than once?!

old Re: VIP Script

DC
Admin Off Offline

Quote
No, I'm ever said that
You could set HP and AP to 200 though.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview