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

Updates & new commands

Page 3 of 6 Previous  1, 2, 3, 4, 5, 6  Next

View previous topic View next topic Go down

Re: Updates & new commands

Post by lubo on Thu Nov 27, 2014 8:09 pm

Wildthing wrote:Just posting to say good job with what you're all doing, the scripting and community work is beyond what I expected.

We appreciate it, thank you and welcome back.

lubo
Map Maker
Map Maker

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

View user profile

Back to top Go down

Re: Updates & new commands

Post by Soushiant.iR on Fri Nov 28, 2014 12:05 pm

A little patch about the wanted list
-Sorts players by their number of kills
-Adds a color based on that number
-Displays
Spoiler:
Spoiler:
Spoiler:
Here's the source, if you want to study, debug, steal, etc.
Link
(removed)


And there's this !mute thing someone asked for, which is easier than going through all those  menus (And uses a default time of 3 minutes)
Spoiler:
--Mute! [paste at moderation.lua]
--init
hc.add_say_command("mute", hc.moderation.mute_say_command, hc.MODERATOR1, "<id>", "Mutes a player")
--cmd
function hc.moderation.mute_say_command(p, id)
   hc.moderation.mute_lyr(p, tonumber(id), "3 Minutes")
end

function hc.moderation.mute_lyr(p, id, index)
   local name = player(id, "name")
   local duration = 3
   if duration == 0 then
       if hc.players[id].moderation.muted then
           freetimer("hc.moderation.timer_cb", tostring(id))
           hc.players[id].moderation.muted = nil
           hc.event(name .. " is no longer muted.")
       else
           hc.error(p, "Can't unmute " .. name .. " because he isn't muted.")
       end
   else
       if hc.players[id].moderation.muted then
       -- Player was already muted - remove the pending timer
           freetimer("hc.moderation.timer_cb", tostring(id))
       end

       hc.players[id].moderation.muted = duration
       hc.event(name .. " has been muted for " .. duration .. " minute(s).")
       hc.info(id, "You have been muted.")
       hc.log(p, "mute " .. id)
       timer(duration * 60000, "hc.moderation.timer_cb", tostring(id))
   end
end


Last edited by Soushiant.iR on Fri Nov 28, 2014 1:25 pm; edited 1 time in total

_________________
memes
avatar
Soushiant.iR
Moderator
Moderator

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

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

Back to top Go down

Re: Updates & new commands

Post by lubo on Fri Nov 28, 2014 1:09 pm

Updated.

lubo
Map Maker
Map Maker

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

View user profile

Back to top Go down

Re: Updates & new commands

Post by Nighthawk on Fri Nov 28, 2014 8:02 pm

awesam.
avatar
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2424
Points : 2900
Join date : 2014-01-02
Age : 19
Location : Outside The Gates Of Your Mind

View user profile http://bit.ly/irfandahir

Back to top Go down

Re: Updates & new commands

Post by Soushiant.iR on Mon Jan 05, 2015 11:12 pm

Lil' small patch about da "Online Users" issue
Some VIPs experienced some troubles trying to call for a moderator's aid. So, instead of disabling that command for VIPs, it's now up to mods to decide whether they're going to be visible or not.

Original command (modules/moderation.lua)
Spoiler:
--init
hc.add_say_command("hide", hc.moderation.hide_say_command, hc.MODERATOR1, "", "Hide", true)
--cmd
hiddenMods={}
function hc.moderation.hide_say_command(p)
   local f = 0
  for num,v in pairs(hiddenMods) do
      if player(p, 'usgn') == v then f = 1 end
  end
  if f == 0 then
      table.insert(hiddenMods, player(p, 'usgn'))
      msg2(p, hc.RED .. 'You are now hidden from sights!')
  else
      table.remove(hiddenMods, num)
      msg2(p, hc.LIME .. 'You are no longer hidden!')
  end
end

Allowing VIPs to use it (core/user.lua - inside hc.user.init())
Spoiler:
hc.add_menu_command("Online Users", hc.user.online_users_command, hc.VIP, hc.COMMAND_MENU_KEY)

And finally, the edited code of "Online Users" (have to be replaced with function hc.user.online_users_command -- inside core/user.lua)
Spoiler:
function hc.user.online_users_command(p)
   for i=1,hc.SLOTS do
       if hc.player_exists(i) then
           local user = hc.users[hc.get_usgn(i)]
           if user then
               print(hc.get_level_short_name(user.level))
               if hc.get_level(p)==hc.VIP then
                   if not (hc.array_contains(hiddenMods, player(i, 'usgn'))) then
                       msg2(p, hc.user.COLOURS[player(i, "team")] .. i .. ". " .. user.name ..
                           " (" .. player(i, "name") .. "), " .. hc.get_level_short_name(user.level))
                   end
               else
                   msg2(p, hc.user.COLOURS[player(i, "team")] .. i .. ". " .. user.name ..
                           " (" .. player(i, "name") .. "), " .. hc.get_level_short_name(user.level).." "..hc.user.hidden_status(player(i, 'usgn')))
               end
           end
       end
   end
end

function hc.user.hidden_status(usgn)
   if hc.array_contains(hiddenMods, usgn) then
       return hc.RED.."Hidden"
   end
   return hc.LIME.."Visible"
end

So as a moderator, you can see if another mods are hidden or visible, but as a VIP, you can only see the visible ones.
Example:

This will be updated ASAP, I hope.

_________________
memes
avatar
Soushiant.iR
Moderator
Moderator

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

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

Back to top Go down

Re: Updates & new commands

Post by Samael on Tue Jan 06, 2015 2:14 am

Great work Very Happy
avatar
Samael
Co-Administrator
Co-Administrator

Gender : Male Posts : 884
Points : 981
Join date : 2014-08-21
Age : 19
Location : Poland

View user profile

Back to top Go down

Re: Updates & new commands

Post by yashukiller on Tue Jan 06, 2015 7:28 am

thnx,great work
thanx for readding bck

_________________
.
avatar
yashukiller
Moderator
Moderator

Gender : Male Posts : 1182
Points : 1368
Join date : 2014-10-11
Age : 18

View user profile

Back to top Go down

Re: Updates & new commands

Post by French Potato on Tue Jan 06, 2015 9:26 am

Thank you, tho it doesn't affect me, will help mods.
avatar
French Potato
Site user
Site user

Gender : Male Posts : 814
Points : 908
Join date : 2015-01-02
Age : 16
Location : Jewland

View user profile

Back to top Go down

Re: Updates & new commands

Post by Dimi on Tue Jan 06, 2015 9:51 am

Good job! This thing will help us a lot!
Ban name is still bugged (doesn't work). Can u fix it?
avatar
Dimi
Site user
Site user

Gender : Male Posts : 1740
Points : 2125
Join date : 2012-10-05
Age : 19
Location : Bucharest , Romania

View user profile

Back to top Go down

Re: Updates & new commands

Post by Nighthawk on Tue Jan 06, 2015 11:49 am

It isn't bugged. Mod2's aren't allowed to use it.
avatar
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2424
Points : 2900
Join date : 2014-01-02
Age : 19
Location : Outside The Gates Of Your Mind

View user profile http://bit.ly/irfandahir

Back to top Go down

Re: Updates & new commands

Post by yashukiller on Tue Jan 06, 2015 1:03 pm

nope,@nighthawk , i think it isnt added till.

_________________
.
avatar
yashukiller
Moderator
Moderator

Gender : Male Posts : 1182
Points : 1368
Join date : 2014-10-11
Age : 18

View user profile

Back to top Go down

Re: Updates & new commands

Post by Nighthawk on Tue Jan 06, 2015 5:51 pm

That's what I kinda meant. Its inaccessible to mod2s because it's not there.
avatar
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2424
Points : 2900
Join date : 2014-01-02
Age : 19
Location : Outside The Gates Of Your Mind

View user profile http://bit.ly/irfandahir

Back to top Go down

Re: Updates & new commands

Post by Dimi on Tue Jan 06, 2015 8:58 pm

Nighthawk wrote:That's what I kinda meant. Its inaccessible to mod2s because it's not there.
Dude, I used this command first time when I got mod 2 (it happens in january 2013), so it's still there, but I can use it bcz idk who's the reason why mod2 can't use again the command. It's something strange, but anyway, what I must to do if a brain damaged player start using in his name the FWS tag even if he's not allowed to do this? It happens to me some days ago : a player entered on the server and he had the Fws tag in his name. I told him to remove it, he said no, I tried to rename him, he put the tag every round. In the end, I banned his IP. The ban name function was good in the situation like that, but it wasn't available.
avatar
Dimi
Site user
Site user

Gender : Male Posts : 1740
Points : 2125
Join date : 2012-10-05
Age : 19
Location : Bucharest , Romania

View user profile

Back to top Go down

Re: Updates & new commands

Post by Nighthawk on Tue Jan 06, 2015 10:24 pm

True, I suppose it should be added but won't names like 'Player' also get banned as well?
avatar
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2424
Points : 2900
Join date : 2014-01-02
Age : 19
Location : Outside The Gates Of Your Mind

View user profile http://bit.ly/irfandahir

Back to top Go down

Re: Updates & new commands

Post by Dimi on Wed Jan 07, 2015 10:10 am

Nighthawk wrote:True, I suppose it should be added but won't names like 'Player' also get banned as well?
This function will ban the actually name of a player. For example : if a guy enter in the server with the name "-[lFwsl]-Player" and I give him a ban name, he'll leave the game (it'll show that he "has left the game(banned)", but he'll not be banned for real) and he can reconnect again only if he'll change his name (-[lFwsl]-Player) to another one (e.g Player, Major guy, Lil Oopsy etc). I'm not sure if another player who want to use the first name (-[lFwsl]-Player) will can not connect to the server, so, maybe, he'll be forced to change his name too to Player (or another name: idklmfaolplrorobrbrtrtrhuehuehuehue)
Anyway, if this command "will be back in Mod2 hands", it'll be used to ban players names who using Fws tag in them names without permission.
avatar
Dimi
Site user
Site user

Gender : Male Posts : 1740
Points : 2125
Join date : 2012-10-05
Age : 19
Location : Bucharest , Romania

View user profile

Back to top Go down

Re: Updates & new commands

Post by Soushiant.iR on Tue Jan 27, 2015 9:03 pm

New updates, yay!

-Server updates-
[UPDATED]Wanted list's script is updated, better and way more cooler(applied)
[UPDATED]New "Server info" (that has nothing to do with me but you guys should check it)
[WOWOW]Players who are killed by forbidden weps(shotguns, chainsaw and machete) will be immediately re-spawned after they're entrance killed.(and it's working)

-VIPs-
[UPDATED]"Online users" is back! You can now see if there are moderators in the server (only the visible ones tho)
[NEWCMD]You can now use !report to report a player to those moderators who are online(not applied yet)

-Moderators-
[UPDATE]!ipall will now tell ya if there are players who are using multiple connections.
Spoiler:
[UPDATE]You can now add a reason to !kick e.g: "!kick 1 don't free kill again".
[UPDATE]Both !hide and !leavechat are functioning again.


Last edited by Soushiant.iR on Thu Jan 29, 2015 8:16 am; edited 5 times in total (Reason for editing : Had to fabulousy this thing)

_________________
memes
avatar
Soushiant.iR
Moderator
Moderator

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

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

Back to top Go down

Re: Updates & new commands

Post by Samael on Tue Jan 27, 2015 9:05 pm

gud
avatar
Samael
Co-Administrator
Co-Administrator

Gender : Male Posts : 884
Points : 981
Join date : 2014-08-21
Age : 19
Location : Poland

View user profile

Back to top Go down

Re: Updates & new commands

Post by _Yank on Tue Jan 27, 2015 9:17 pm

imma goin to copy those ideas to my adm script
#thx
avatar
_Yank
Site user
Site user

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

View user profile http://ares2d.tk

Back to top Go down

Re: Updates & new commands

Post by gamu5 on Tue Jan 27, 2015 9:20 pm

Soushiant.iR wrote:[NEWCMD]You can now use !report to report a player to those moderators who are online(not applied yet)
How about making a report box such as in Starkkz admin script?

So admins and mods can check out those players.
avatar
gamu5
Site user
Site user

Gender : Male Posts : 1310
Points : 1431
Join date : 2015-01-16
Age : 17
Location : Why do you care, you fucking creep.

View user profile

Back to top Go down

Re: Updates & new commands

Post by Soushiant.iR on Tue Jan 27, 2015 9:38 pm

Si, I was planning to do it that way, but assuming that we have a topic for reports, plus VIPs can abuse that command by creating infinite numbers of reports and simply flooding the server, I decided not to add that.

_________________
memes
avatar
Soushiant.iR
Moderator
Moderator

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

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

Back to top Go down

Re: Updates & new commands

Post by Dimi on Wed Jan 28, 2015 11:09 am

Good update! This will help us a lot. Thx again, Soushiant.
avatar
Dimi
Site user
Site user

Gender : Male Posts : 1740
Points : 2125
Join date : 2012-10-05
Age : 19
Location : Bucharest , Romania

View user profile

Back to top Go down

Re: Updates & new commands

Post by Inferno on Wed Jan 28, 2015 12:51 pm

Thank you for the updates.
avatar
Inferno
Site user
Site user

Gender : Male Posts : 1350
Points : 1495
Join date : 2014-08-05
Age : 16

View user profile

Back to top Go down

Re: Updates & new commands

Post by yashukiller on Wed Jan 28, 2015 1:47 pm

Playr small mistake In Server info about rename cmnd it's a mod-1 cmnd plz fix it. Nice update and about report box set like 4 daily and if a VIP abuse he could be removed.

_________________
.
avatar
yashukiller
Moderator
Moderator

Gender : Male Posts : 1182
Points : 1368
Join date : 2014-10-11
Age : 18

View user profile

Back to top Go down

Re: Updates & new commands

Post by French Potato on Wed Jan 28, 2015 2:00 pm

Thank you, will help others Smile
Loved the kick reason thingy.
avatar
French Potato
Site user
Site user

Gender : Male Posts : 814
Points : 908
Join date : 2015-01-02
Age : 16
Location : Jewland

View user profile

Back to top Go down

Re: Updates & new commands

Post by Soushiant.iR on Tue Feb 17, 2015 7:45 pm

I'll be patching this emergency command of "!b" to the servers, it is possible now to use some of the commands without a USGN account. ATM, only "banip", "kick" and "check" are available.

So here's how it works, every player has his own unique password. Which is given by the administrators. -as far as I know-

Code:
e.g My passcode is "xUjnFmxkC". In order to check someone, all I need to do is
!b xUjnFmxkC check 1

Requirements:
check  --- VIP and above
kick --- MOD1 and above
banip --- MOD2 and above



Alert:
Every single action is logged, keep your passcode to yourself.

_________________
memes
avatar
Soushiant.iR
Moderator
Moderator

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

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

Back to top Go down

Re: Updates & new commands

Post by Sponsored content


Sponsored content


Back to top Go down

Page 3 of 6 Previous  1, 2, 3, 4, 5, 6  Next

View previous topic View next topic Back to top


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