-[IFwsI]-
You need an account to view all sections/topics

Join the forum, it's quick and easy

-[IFwsI]-
You need an account to view all sections/topics
-[IFwsI]-
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Wanted list - Script

+13
MetaKnight
Dimi
Dappleblood
Soushiant.iR
«[B]lack [S]uit»
-Limon.#
Bonzo
drcamper
Nighthawk
Mew~
Ipomme13
_Yank
lubo
17 posters

Page 2 of 2 Previous  1, 2

Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by RuzzleFury Thu Jul 31, 2014 5:19 pm

Well I've got a solution for all this ?
Basically , If you kill 1 ct your name turns White , So white means the person can surrender !
If you kill 2 cts , Your name turns orange , The CT has the right to kill you if he wants , but if he wants you to surrender then he can allow you to .
If you kill 3 cts , Your name turns red , and then you cannot surrender anymore , Then you got to live free or die hard .
Anyone supporting this ?
RuzzleFury
RuzzleFury
Site user
Site user

Gender : Male Posts : 720
Points : 819
Join date : 2014-06-15
Age : 23
Location : Egypt

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Chero Thu Jul 31, 2014 5:35 pm

I support the idea of killing 2 CT first,
anyway, How about an extra hp for killing anyone in the wanted list ?

@RuzzleFury it's not possible to change the name color.
Chero
Chero
Site user
Site user

Gender : Male Posts : 425
Points : 1082
Join date : 2012-02-02
Location : Egypt

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by lubo Thu Jul 31, 2014 5:49 pm

Keep it simple people enough with the color sh*t.
I have three years experience with cs2d and I kind of know how the lil brain of the cs2d player works, they wants it simple and casual. Everyone wants to make this script more friendly for the terrorists that in the end it will be useless. I want this script to be for the counter terrorists not for the both teams, don't worry people will still kill to be terrorist but we will just bring a job for the counter terrorist, simple job kill the wanted.
Think of it this way:
If two kills equals wanted level this means that the wanted list will be max eight players. - less fun for the counter terrorists.

If one kill equals wanted level this means that the wanted list will be max sixteen players. - more fun for the counter terrorists.

Please people think like you're playing counter terrorist. Terrorists already have all the awesome stuff in the maps well it's time to make something for the counter terrorists.
And after all we can update the script as long as it needs to.

lubo
Map Maker
Map Maker

Gender : Male Posts : 1415
Points : 3395
Join date : 2011-08-26
Age : 28

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by «[B]lack [S]uit» Thu Jul 31, 2014 7:22 pm

Lubo is (twice) right: keep it simple and give more awesome stuff for the CT. There is always a list of 5 specs who are waiting to become a terrorist. However cookies are good...
«[B]lack [S]uit»
«[B]lack [S]uit»
Site user
Site user

Gender : Male Posts : 33
Points : 37
Join date : 2014-07-24
Age : 27
Location : Belgium

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by _Yank Thu Jul 31, 2014 8:05 pm

I made it. Here it is: http://pastebin.com/raw.php?i=JAndis2E
_Yank
_Yank
Site user
Site user

Gender : Male Posts : 394
Points : 654
Join date : 2012-06-01
Age : 24
Location : Under your bed

http://ares2d.tk

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by lubo Thu Jul 31, 2014 9:30 pm

The ''wanted list'' text didn't appear in the beginning of the round, not sure if you did on purpose but I've fixed it. Fixed the colors so they could be more visible but still not to annoy the player.

Code:
-----------------------------
-- Wanted System (and kinda advanced simple ( O.o ) Lua tutorial)
-- Fairy n Limon :3
-----------------------------

-- Config
local silenceKills = false -- Set it to true if you want a silence kill system. (If terrorist used a knife, he wont be on the wanted list)
local colorList = false -- Set it to false if you don't want the wanted list to be coloured (Higher the wanted level, darker the color)
local displayNumber = 3 -- Set this to the number of players from the wanted list to display. (0 to display all)
-- Values
local wantedList = {}
-- Utilities
local function sortTable(table1,table2) return table1[2] > table2[2] end
-- Functions
parse('hudtxt 20 "©250250250Wanted List:" 5 100')
local function updateHud(killer)
   if killer > 0 then
      local alreadyIn = false
      for k = 1, #wantedList do
         if wantedList[k][1] == killer then
            wantedList[k][2] = wantedList[k][2] + 1
            alreadyIn = true
            break
         end
      end
      if not alreadyIn then table.insert(wantedList,{killer,1}) end
      
      table.sort(wantedList,sortTable)
   end
   
   
   for k = 1, #wantedList do
      local hudid = k + 21
      local name = player(wantedList[k][1],"name")
      local yposition = (k * 15) + 100
      local color = '\169'.. 255 - (10 * k) ..'025000'
      
      if killer == -1 then name = "" end
      if not colorList then color = "" end
      parse('hudtxt '..hudid..' "'..color.."©220220220"..name..'" 5 '..yposition)
      
      if displayNumber > 0 then if k >= displayNumber then break end end
   end
end

function removeWantedLevel(id)
   for k = 1, #wantedList do
      if wantedList[k][1] == id then
         table.remove(wantedList,k)
         parse('hudtxt '.. #wantedList + 1 + 21 ..' " " 5 0')
         break
      end
   end
   updateHud(0)
end

-- Hooks
addhook("leave","removeWantedLevel")
addhook("die","removeWantedLevel")

addhook("startround","wl_startround")
function wl_startround()
   updateHud(-1)
   wantedList = {}
end

addhook("kill","wl_kill")
function wl_kill(killer,victim)
   if player(killer,"team") ~= 1 or (silenceKills and itemtype(weapon,"slot") == 16) then return end
   updateHud(killer)
end


Last edited by lubo on Fri Aug 01, 2014 12:08 am; edited 1 time in total

lubo
Map Maker
Map Maker

Gender : Male Posts : 1415
Points : 3395
Join date : 2011-08-26
Age : 28

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by -Limon.# Thu Jul 31, 2014 10:02 pm

@lubo wanted list text appears in the beginning there wouldnt be any problem here. Anyway, in your edit there are only adding 3 player into the wanted list. Why did you do that?
-Limon.#
-Limon.#
Site user
Site user

Gender : Male Posts : 412
Points : 748
Join date : 2011-06-22
Age : 28

http://nzhtrtlc.xyz

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by _Yank Thu Jul 31, 2014 10:38 pm

-Limon.# wrote:@lubo wanted list text appears in the beginning there wouldnt be any problem here. Anyway, in your edit there are only adding 3 player into the wanted list. Why did you do that?
I made that. You know that the server is popular and having something like 7 wanted players, display all that would disturb the gameplay. So I made a simple setup variable where you can set the max number of players to display.
_Yank
_Yank
Site user
Site user

Gender : Male Posts : 394
Points : 654
Join date : 2012-06-01
Age : 24
Location : Under your bed

http://ares2d.tk

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by lubo Fri Aug 01, 2014 12:10 am

Fixed to maximum 16 wanted players, I doubt that we will ever see 16 players in the list.

lubo
Map Maker
Map Maker

Gender : Male Posts : 1415
Points : 3395
Join date : 2011-08-26
Age : 28

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by _Yank Fri Aug 01, 2014 2:11 am

lubo wrote:Fixed to maximum 16 wanted players, I doubt that we will ever see 16 players in the list.
If you're talking about the displayNumber value, it isn't the max number of wanted players but the max number of wanted players that's going to be displayed on the screen.
_Yank
_Yank
Site user
Site user

Gender : Male Posts : 394
Points : 654
Join date : 2012-06-01
Age : 24
Location : Under your bed

http://ares2d.tk

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by -Limon.# Fri Aug 01, 2014 10:04 am

Also we should put a little message to Info Page, about wanted system.
-Limon.#
-Limon.#
Site user
Site user

Gender : Male Posts : 412
Points : 748
Join date : 2011-06-22
Age : 28

http://nzhtrtlc.xyz

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Ipomme13 Fri Aug 01, 2014 3:27 pm

Well i have an idea: if when a ct kills a tt with 3 kills the ct wins 3 BPs (bounty points) and vice-versa!
Ipomme13
Ipomme13
Site user
Site user

Gender : Male Posts : 256
Points : 366
Join date : 2014-07-05
Age : 22
Location : In your deepest.... dreams... Of being a gangster.

http://gamingnetwork.portugueseforum.com.pt/

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by «[B]lack [S]uit» Fri Aug 01, 2014 4:39 pm

It think it's a good idea. Just if a CT kills a TT on the 'Wanted List'. But what can a CT do with those 'bounty points'?
«[B]lack [S]uit»
«[B]lack [S]uit»
Site user
Site user

Gender : Male Posts : 33
Points : 37
Join date : 2014-07-24
Age : 27
Location : Belgium

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Nighthawk Fri Aug 01, 2014 4:40 pm

Why the hell is pastebin banned in my country? Can you send me the code as
Code:
in PM? For educational purposes ofcourse D:
Nighthawk
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2426
Points : 2902
Join date : 2014-01-02
Age : 25
Location : Outside The Gates Of Your Mind

http://bit.ly/irfandahir

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by lubo Tue Sep 09, 2014 12:38 pm

The Wanted list is now running in fws jail, thanks to Soushiant.iR.
I've added a rule about it in F1.

lubo
Map Maker
Map Maker

Gender : Male Posts : 1415
Points : 3395
Join date : 2011-08-26
Age : 28

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by -Limon.# Tue Sep 09, 2014 8:07 pm

I was wondering about it. Good news.
-Limon.#
-Limon.#
Site user
Site user

Gender : Male Posts : 412
Points : 748
Join date : 2011-06-22
Age : 28

http://nzhtrtlc.xyz

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by _Yank Tue Sep 09, 2014 9:29 pm

What happened ? :O
_Yank
_Yank
Site user
Site user

Gender : Male Posts : 394
Points : 654
Join date : 2012-06-01
Age : 24
Location : Under your bed

http://ares2d.tk

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by lubo Tue Sep 09, 2014 10:22 pm

I've asked Soushiant.iR. (Playr) to make a new script since the last one wasn't working well (because of HC admin script). It was pain in the baby maker to make it work with HC admin script but he made it.
@-Limon.# @CkelviN thanks for helping me, I really do appreciate it.

lubo
Map Maker
Map Maker

Gender : Male Posts : 1415
Points : 3395
Join date : 2011-08-26
Age : 28

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Inferno Wed Sep 10, 2014 5:57 am

Well they can be kill on sight... Unless they surrender in front of CTRs.
Inferno
Inferno
Site user
Site user

Gender : Male Posts : 1349
Points : 1494
Join date : 2014-08-05
Age : 23

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by _Yank Wed Sep 10, 2014 8:32 pm

lubo wrote:I've asked Soushiant.iR. (Playr) to make a new script since the last one wasn't working well (because of HC admin script). It was pain in the baby maker to make it work with HC admin script but he made it.
@-Limon.# @CkelviN thanks for helping me, I really do appreciate it.
Oh, I see
Sorry for that Razz
Cool that Fws has lots of talented scripters. I kinda feel jealous, I don't have this type of help on Ares O.O
_Yank
_Yank
Site user
Site user

Gender : Male Posts : 394
Points : 654
Join date : 2012-06-01
Age : 24
Location : Under your bed

http://ares2d.tk

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Glixable Thu Sep 11, 2014 10:00 pm

Dont have time to read all this so, here what i want to add -
When you kill more ct, you will be '' most wanted'' like, i killed 3 ct im in WANTED 1. Glix , and mikasa killed 2 ct, so hes in 2nd. + Smaller font, its too big. No one likes when text is too big.


Edit: Got one idea. I think all will try to be on terrorist side to get to top wanted. So what about making first high scored ct '' swat ''. Ofc some of them will fk to get to this list, but i think fws have enough mods there. Is it possible to add to them uniform ? hat ?

Glixable
Site user
Site user

Gender : Male Posts : 1477
Points : 1757
Join date : 2013-12-13
Location : Finland

http://Troll.lol

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Soushiant.iR Thu Sep 11, 2014 11:20 pm

Glixable wrote:Dont have time to read all this so, here what i want to add -
When you kill more ct, you will be '' most wanted'' like, i killed 3 ct im in WANTED 1. Glix , and mikasa killed 2 ct, so hes in 2nd. + Smaller font, its too big. No one likes when text is too big.

I've already made something like this, not with size but with colors. The sorting process would be the same, but it'll look better if we use colors. A few more changes and maybe it's added to the server.

Glixable wrote:Edit: Got one idea. I think all will try to be on terrorist side to get to top wanted. So what about making first high scored ct '' swat ''. Ofc some of them will fk to get to this list, but i think fws have enough mods there. Is it possible to add to them uniform ? hat ?
The wantedlist's purpose was to enhance the gameplay for the counter-terrorists. What you are saying is something different -customizing-. And I'm not sure if it's worth it
Soushiant.iR
Soushiant.iR
Moderator
Moderator

Gender : Male Posts : 1266
Points : 1419
Join date : 2011-12-21
Age : 26
Location : Earthend

http://project-extract.site50.net/Download/gui.html

Back to top Go down

Wanted list - Script  - Page 2 Empty Re: Wanted list - Script

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum