Forum

> > CS2D > Scripts > how to make vip
Forums overviewCS2D overview Scripts overviewLog in to reply

English how to make vip

5 replies
To the start Previous 1 Next To the start

old how to make vip

wato24
User Off Offline

Quote
i have admin script.
can any body tell me how do the command

!makevip [id]

old Re: how to make vip

DC
Admin Off Offline

Quote
Technically impossible. The V.I.P. is intended for the standard game mode and as_ maps only. You can't use it for your Lua script stuff.

old Re: how to make vip

oxytamine
User Off Offline

Quote
@user DC:
He means VIP users on his server... With super retarded purple color and very special "@VIP@" sign before his name.
edited 1×, last 28.06.12 09:15:58 pm

old Re: how to make vip

DC
Admin Off Offline

Quote
Oh. Really? Wow... in this case it's just pointless but possible.

old Re: how to make vip

EngiN33R
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
admins={} --Your almighty admin USGNs go here
vips={} --If you wish, you can insert VIPs manually

addhook("say","makevipcommand")
function makevipcommand(id,t)
	for _,uid in pairs(admins) do
		if t:sub(1,8)=="!makevip" and player(id,"usgn")==uid then
			local iid=tonumber(t:sub(10))
			vips[#vips+1]=player(iid,"usgn")
			msg("Behold, everyone! "..player(iid,"name").." has just been promoted to VIP!@C")
			msg("All hail "..player(iid,"name").."!@C")
		end
	end
	for _,uid in pairs(vips) do
		if player(id,"usgn")==uid then
			msg("Oh look, "..player(id,"name").." is a god damn VIP! All obey his word that shall follow:@C")
			msg(string.char(169).."255255255@VIP@"..player(id,"name")..": "..t)
		end
	end
end

I couldn't be arsed with making a save system. Seriously, just go grab an admin script, there's a plethora of those.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview