Forum

> > CS2D > Scripts > Usgn players spawn in a different place
Forums overviewCS2D overview Scripts overviewLog in to reply

English Usgn players spawn in a different place

2 replies
To the start Previous 1 Next To the start

old Usgn players spawn in a different place

michal16202
User Off Offline

Quote
I need a script to a certain usgn players spawn in a different location than the default spawn. I want to introduce to my server vips. I tested a few scripts for vips and admins but have bugs and often do not work as they should because I want to few players who purchase the vip spawn in a different place and they will get better weapons. And I still would do something that the players will have more hp than normal players.

old Re: Usgn players spawn in a different place

Apache uwu
User Off Offline

Quote
Try this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
vips={81354,xxxxx,xxxxx,xxxxx}

function isVip(id)
	for _,vip in pairs(vips) do
		if player(id,"usgn")==vip then
			return true
		end
	end
	return false
end

addhook("spawn","_spawn")

function _spawn(id)
	if isVip(id) then
		parse("setpos "..id.." 640 480") --edit this for a new spawn position
		return 45,80 --change for different weapons
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview