Forum

> > CS2D > Scripts > I need script for Weapon Rounds
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I need script for Weapon Rounds

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: I need script for Weapon Rounds

Snark
User Off Offline

Zitieren
You can edit it. Damn.
Zitat
>Features:
∗You can set round name
∗You can set round weapons
∗You can set round weapon with infinity ammo
∗You can set round spawn position to T/CT
∗You can set weapons that will be on the ground

alt Re: I need script for Weapon Rounds

Conscience
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
round = 1
maxround = 3

addhook("spawn","_spawn")
addhook("endround","_endround")

function _spawn(id)
	if round == 1 then -- Checks if it is round 1 (RPG Launcher round)
		return 47 -- equip RPG Launcher (ID 47), multiple weapons = return 1, 2, 3 etc
	elseif round == 2 then -- Your next round, for example laser round
		return 45
	end
end

function _endround(mode)
	round = round + 1
	if round == maxround then -- This will loop the rounds, making the rounds never stop
		round = 1
	end
end
I posted this a couple of hours ago in another thread.

alt Re: I need script for Weapon Rounds

MikuAuahDark
User Off Offline

Zitieren
cs2d cmd spawnitem hat geschrieben
IMG:https://www.cs2d.com/img/ref_items.png


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
WeaponList_AuahDark={11,32}	-- Add the weapon ID here. All ID of weapons listed above
r=1

addhook("spawn","Auah_Spawn")
function Auah_Spawn(id)
	return WeaponList_AuahDark[r]
end

addhook("endround","Dark_End")
function Dark_End()
	if r==#WeaponList_AuahDark then
		r=1
	else
		r=r+1
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht