Forum

> > CS2D > Scripts > VIP Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch VIP Script

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: VIP Script

DC
Admin Off Offline

Zitieren
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

alt Re: VIP Script

Mami Tomoe
User Off Offline

Zitieren
user DC hat geschrieben
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?!

alt Re: VIP Script

DC
Admin Off Offline

Zitieren
No, I'm ever said that
You could set HP and AP to 200 though.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht