Forum

> > CS2D > Scripts > AutoSpec Solution
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch AutoSpec Solution

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt AutoSpec Solution

Anders4000
User Off Offline

Zitieren
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:
Mehr >
2× editiert, zuletzt 26.01.11 15:44:45

alt Re: AutoSpec Solution

Anders4000
User Off Offline

Zitieren
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

alt Re: AutoSpec Solution

Yasday
User Off Offline

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

alt Re: AutoSpec Solution

Anders4000
User Off Offline

Zitieren
Yasday hat geschrieben
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 hat geschrieben
1
2
3
4
5
function AutoSpec(id)
	Lives[id] = 0
	parse("makespec "..id)
	parse('hudtxt2 '..id..' 7 "©255000000You are dead."'..YouAreDeadPos)
end

alt Re: AutoSpec Solution

Yasday
User Off Offline

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

alt Re: AutoSpec Solution

Yasday
User Off Offline

Zitieren
If it doesn't work, add
1
parse([[makespec ]]..id)
in the team hook(between if Lives[id] < 1 then and return 1).
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht