Forum

> > CS2D > Scripts > Usgn players spawn in a different place
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Usgn players spawn in a different place

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Usgn players spawn in a different place

michal16202
User Off Offline

Zitieren
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.

alt Re: Usgn players spawn in a different place

Apache uwu
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht