Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Class script--request
4 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
![user](img/i_friend.png)
1× editiert, zuletzt 01.11.20 14:13:07
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
![](img/smiles/par-t.gif)
![user](img/i_friend.png)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)