LamdaProCS - Gaming Community - Forum
Warn Plugin on any server! - Printable Version

+- LamdaProCS - Gaming Community - Forum (https://forum.lamdaprocs.in)
+-- Forum: GENERAL DISCUSSION (https://forum.lamdaprocs.in/forumdisplay.php?fid=7)
+--- Forum: #PLUGINS, SCRIPTING, MODS (https://forum.lamdaprocs.in/forumdisplay.php?fid=130)
+---- Forum: Plugins + SMA (https://forum.lamdaprocs.in/forumdisplay.php?fid=135)
+---- Thread: Warn Plugin on any server! (/showthread.php?tid=3541)



Warn Plugin on any server! - Raymond Reddington - 07-19-2018

Hello, guys!

Are you bored of warning people normally through chat and giving them opportunity to show their innocence? I've scripted my plugin for warning people which took me 5 minutes..

What is it and how it works?

It is a simple script programmed in AMXX Studio that allows administrators to warn every player on the server, after 3 successful warnings, player will be automatically kicked out from the server. After being kicked and connected back, his warnings will be all restarted.

How to use it as administrator?

All you have to know is that you have to write a special command into the chat which will trigger the warn function. Special command consists of the main command and two arguments - first must be filled and second does not have to be (if you don't want to show server the reason why you warned player).

Command syntax:   /warn [ID] [reason]
In-game command syntax:   /warn 1 dont go 2vs1

Where can I find player's ID?

Every player on the server has unique ID that makes him specific. According to this ID, you are able to give player weapon, make him disappear, or warn him Smile . But how can I exactly find it out?

All you have to know is that you have to write a command in the console.

Command:   status

You'll see something like this:

PHP Code:
#      name userid uniqueid frag time ping loss adr
# 1 "[RO] ///ui=" 136 STEAM_1:0:1511441217   1 00:26   40    0
# 2 "[ES] marco" 85 STEAM_1:0:206759751   0 15:08   29    0
# 3 "[SK] Reddington" 137 STEAM_0:0:441614789   0 00:09   42    0
# 4 "[PS] fars" 123 STEAM_1:0:875587851   0 03:58  115    0
# 5 "[BA] mY H@u$e" 132 STEAM_1:0:1575205714   0 02:27   66    0
# 6 "[BA] Fap" 128 STEAM_1:0:144531798   1 02:57   44    0
# 7 "[RO] unnamed" 97 STEAM_1:0:1682183399   0 11:17   68    0
# 8 "[RS] LaW" 135 STEAM_1:0:744333698   5 02:09   50    0
# 9 "[DZ] unnamed" 127 STEAM_1:0:144535631  10 02:57   69    0
#10 "[BG] JusT ReLaX" 113 STEAM_1:0:254916847  22 08:02   46    0
#11 "[LT] Poxuistas" 43 STEAM_1:0:2100277903  15 27:40   31    0
#12 "[DK] PriesT" 54 STEAM_0:1:15453867  70 23:00   32    0
#13 "[RO] SeDaN" 33 STEAM_1:0:1027998451  28 32:17   63    0
#14 "[TR] 0()(CvM)()0" 121 STEAM_1:0:1711259351   6 05:13   72    0 

These are your values you're looking for: #1, #2, #3, #4 (use it in chat without HASHTAGS!)

End

Hope you approve my plugin find it useful for you Smile . If anyone of you knows how to improve plugin - what to add inside it let me know, guys! Would be glad for every idea you give me.



Download link

Download link: warnplugin.amxx



RE: Warn Plugin on any server! - Veicis - 07-19-2018

(07-19-2018, 10:26 AM)Reddington Wrote: Hello, guys!

Are you bored of warning people normally through chat and giving them opportunity to show their innocence? I've scripted my plugin for warning people which took me 5 minutes..

What is it and how it works?


It is a simple script programmed in AMXX Studio that allows administrators to warn every player on the server, after 3 successful warnings, player will be automatically kicked out from the server. After being kicked and connected back, his warnings will be all restarted.

How to use it as administrator?


All you have to know is that you have to write a special command into the chat which will trigger the warn function. Special command consists of the main command and two arguments - first must be filled and second does not have to be (if you don't want to show server the reason why you warned player).

Command syntax:   /warn [ID] [reason]
In-game command syntax:   /warn 1 dont go 2vs1

Where can I find player's ID?


Every player on the server has unique ID that makes him specific. According to this ID, you are able to give player weapon, make him disappear, or warn him Smile . But how can I exactly find it out?

All you have to know is that you have to write a command in the console.

Command:   status

You'll see something like this:


PHP Code:
#      name userid uniqueid frag time ping loss adr
# 1 "[RO] ///ui=" 136 STEAM_1:0:1511441217   1 00:26   40    0
# 2 "[ES] marco" 85 STEAM_1:0:206759751   0 15:08   29    0
# 3 "[SK] Reddington" 137 STEAM_0:0:441614789   0 00:09   42    0
# 4 "[PS] fars" 123 STEAM_1:0:875587851   0 03:58  115    0
# 5 "[BA] mY H@u$e" 132 STEAM_1:0:1575205714   0 02:27   66    0
# 6 "[BA] Fap" 128 STEAM_1:0:144531798   1 02:57   44    0
# 7 "[RO] unnamed" 97 STEAM_1:0:1682183399   0 11:17   68    0
# 8 "[RS] LaW" 135 STEAM_1:0:744333698   5 02:09   50    0
# 9 "[DZ] unnamed" 127 STEAM_1:0:144535631  10 02:57   69    0
#10 "[BG] JusT ReLaX" 113 STEAM_1:0:254916847  22 08:02   46    0
#11 "[LT] Poxuistas" 43 STEAM_1:0:2100277903  15 27:40   31    0
#12 "[DK] PriesT" 54 STEAM_0:1:15453867  70 23:00   32    0
#13 "[RO] SeDaN" 33 STEAM_1:0:1027998451  28 32:17   63    0
#14 "[TR] 0()(CvM)()0" 121 STEAM_1:0:1711259351   6 05:13   72    0 

These are your values you're looking for: #1, #2, #3, #4 (use it in chat without HASHTAGS!)

End


Hope you approve my plugin find it useful for you Smile . If anyone of you knows how to improve plugin - what to add inside it let me know, guys! Would be glad for every idea you give me.



Download link

Download link: warnplugin.amxx
The whole concept aounds decent enough.

Tho - ID could be changed to the nick as it would simply would be much easier.

And also reseting after re-connect could be some why configured. As in to having a few min ban up to 5 min or so.

Overall good job. And will consider it.


RE: Warn Plugin on any server! - Raymond Reddington - 07-19-2018

I can do that in next updates. Currently I'm working on something else for you. But I'll have to do it once I come back from vacation.
If you approve it, you could place it on Knife server because we would not be forced to kick people for what they did.. or on any server.. its up to you, tho.


RE: Warn Plugin on any server! - Veicis - 07-19-2018

(07-19-2018, 12:42 PM)Reddington Wrote: I can do that in next updates. Currently I'm working on something else for you. But I'll have to do it once I come back from vacation.
If you approve it, you could place it on Knife server because we would not be forced to kick people for what they did.. or on any server.. its up to you, tho.

Well i'm more less only intrested for DD2 Smile 

Moded servers are all for Swarm Hunter Smile

Enjoy ur Vacation tho Wink


RE: Warn Plugin on any server! - Raymond Reddington - 07-19-2018

Thanks Big Grin