Forum
CS2D Scripts Class script--requestClass script--request
4 replies 1
edited 1×, last 01.11.20 02:13:07 pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- your generic class code --[[ 	... ]]-- amountOfClasses = 12 addhook("spawn","mySpawn") function mySpawn(id) 	if (player(id,"bot")) then 		rand = math.random(1, amountOfClasses);	 		if (rand == 1) then 			-- corresponding stats to the first class 			parse("speedmod "..id.." 100") 			return 50, 70; 		elseif (rand== 2) then 		-- corr. stats to the second class 		elseif (rand==3) then 		-...		 		end 	end end
1