07-19-2018, 10:26 AM
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 . 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:
These are your values you're looking for: #1, #2, #3, #4 (use it in chat without HASHTAGS!)
End
Download link: warnplugin.amxx
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 . 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 . 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