Raised This Month: $32 Target: $400
 8% 

amx_tempban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stefanos
Senior Member
Join Date: May 2020
Old 05-09-2021 , 20:26   amx_tempban
Reply With Quote #1

admin flag "b" when type amx_tempban name reason

player gets banned for 15 minutes with typed reason

message for ban: You are banned for 15 minutes, Reason: my-reason

ban on steam id and ip !
Stefanos is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-09-2021 , 20:26   Re: amx_tempban
Reply With Quote #2

or only ip if easier to do.
Stefanos is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-09-2021 , 20:39   Re: amx_tempban
Reply With Quote #3

How is this different from using the normal amx_ban?
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-09-2021 , 21:52   Re: amx_tempban
Reply With Quote #4

You can just use amx_addban then kick that player
For Command list and Param: link
__________________
My plugin:
Celena Luna is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-10-2021 , 21:19   Re: amx_tempban
Reply With Quote #5

nah guys, i need this what i typed. i cant you explain why, if u can do it i will be grateful
Stefanos is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-10-2021 , 21:40   Re: amx_tempban
Reply With Quote #6

Quote:
Originally Posted by Stefanos View Post
nah guys, i need this what i typed. i cant you explain why, if u can do it i will be grateful
Just use Advanced Ban
__________________
My plugin:
Celena Luna is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-10-2021 , 22:43   Re: amx_tempban
Reply With Quote #7

dont change my request, I typed what i need, if u cant provide what i asked do not reply with stupid answers.
thanks
Stefanos is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-10-2021 , 23:18   Re: amx_tempban
Reply With Quote #8

Dude, chill. No body gets paid to make requests here (unless you're paying). Also it is often the case that an existing plugin will satisfy many requests so it is a good idea to see if something already exists that will satisfy the request adequately.

Here is a temp ban plugin that I created based on the amx_ban command in AMX Mod X 1.9.0:
Attached Files
File Type: sma Get Plugin or Get Source (tempban.sma - 102 views - 2.6 KB)
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-11-2021 , 03:16   Re: amx_tempban
Reply With Quote #9

Quote:
Originally Posted by Stefanos View Post
dont change my request, I typed what i need, if u cant provide what i asked do not reply with stupid answers.
thanks
How it is stupid? We were giving you the solution for you problem but you are so stubborn that I think you don't even read.

I thought at first you were just lazy to write both amx_addban then amx_kick so I link you the Advanced Ban plugin.

In Advanced Ban (https://forums.alliedmods.net/showthread.php?t=80858), it have all you asked for:
- ADMINs have to have flag "b"
- You can enter time and reason for the ban
- Can ban both IP and username

PHP Code:
amx_ban <nick#userid, authid> <time in minutes> <reason>
amx_banip <nick#userid, authid> <time in minutes> <reason> 
The only different is it doesn't have the word "temp" but instead amx_ban.

What wrong with your obsession with the word "temp"? or you are too lazy to type "15"?
__________________
My plugin:

Last edited by Celena Luna; 05-11-2021 at 03:28. Reason: not using hyperlink since he might doesn't know how to click the hyperlink
Celena Luna is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-11-2021 , 08:54   Re: amx_tempban
Reply With Quote #10

First of all, you are not giving solution for what i need, my server is in top20 in world, i know what i want and WHY i want it like that, i know what im doing obv. Thanks for trying to "help", and fysiks im gonna test it tonight. thank you
Stefanos is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode