English how can i find a 1 player alive detector script?

6 replies
Goto Page
To the start Previous 1 Next To the start
Up
Shadow2008_br
User
Offline Off
hi guys! im looking for a 1 player alive detector for my server "DEATHMATCHBATTLES" i want to make the last player alive win the game anyone know the script?

Admin/mod comment:

Are you too lazy to choose the right forum section? /user Fraizeraust
22.11.18 06:12:30 am
Up
Bowlinghead
User
Offline Off
Code:
1
2
3
4
5
6
addhook("die","i")
function i(vic)
     if (#player(0,"tableliving") <= 1) then
          parse("mp_restargame 1")
     end
end
Share time limited free games here
22.11.18 09:27:53 pm
Up
Shadow2008_br
User
Offline Off
@user Bowlinghead:thanks you!, but where i need to put the code?
22.11.18 09:38:48 pm
Up
Goo
User
Offline Off
Create a
.lua
file and place it inside of it, then move it to the following folder:
cs2d\sys\lua\autorun
23.11.18 08:13:23 am
Up
Quattro
User
Offline Off
have fun with nothing happening.
23.11.18 06:59:19 pm
Up
Shadow2008_br
User
Offline Off
user Goo has written:
oh, but i added admin script to sys and now my cs2d don't have autorun only autoexec
23.11.18 07:47:09 pm
Up
Fraizeraust
Moderator
Offline Off
To the start Previous 1 Next To the start