Forum

> > CS2D > Scripts > AutoSpec Solution
Forums overviewCS2D overview Scripts overviewLog in to reply

English AutoSpec Solution

7 replies
To the start Previous 1 Next To the start

old AutoSpec Solution

Anders4000
User Off Offline

Quote
Hello. Do anyone have a good AutoSpec solution?
Mine here doesn't work for some reason. I use this Lives[] table.
And if the Lives get below 1 (0) then the player should not be
able to join a team.
In this case, he can.

Thanks!
- Anders4000

DC, please enable multiple spaces in the code tags.

My code below:
More >
edited 2×, last 26.01.11 03:44:45 pm

old Re: AutoSpec Solution

Anders4000
User Off Offline

Quote
That didn't help. There is nothing about Autospecing...
Anyone got a Autospec scipt they will share?
Or is there any1 who can fix my code?

Thanks! (:
- Anders4000

old Re: AutoSpec Solution

Yasday
User Off Offline

Quote
Is the player joining the specs?
If not, first makespec and then set the lives to 0.

old Re: AutoSpec Solution

Anders4000
User Off Offline

Quote
Yasday has written
Is the player joining the specs?
If not, first makespec and then set the lives to 0.


If your lives gets below 1 (0) you should get autospeced.
Code has written
1
2
3
4
5
function AutoSpec(id)
	Lives[id] = 0
	parse("makespec "..id)
	parse('hudtxt2 '..id..' 7 "©255000000You are dead."'..YouAreDeadPos)
end

old Re: AutoSpec Solution

Yasday
User Off Offline

Quote
I know, I looked at the code. But if the players lives are < 1 then the team won't be changed, even with maket/ct/spec the team wouldn't be changed. Try to parse the makespec first and then put the lives to 0.

old Re: AutoSpec Solution

Yasday
User Off Offline

Quote
If it doesn't work, add
1
parse([[makespec ]]..id)
in the team hook(between if Lives[id] < 1 then and return 1).
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview