Raised This Month: $51 Target: $400
 12% 

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
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-11-2021 , 03:16   Re: amx_tempban
Reply With Quote #8

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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-11-2021 , 23:35   Re: amx_tempban
Reply With Quote #9

Quote:
Originally Posted by Celena Luna View Post
both amx_addban then amx_kick
That doesn't even make sense, why would anyone do this? amx_ban does both the banning and the kicking already.
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-12-2021 , 03:22   Re: amx_tempban
Reply With Quote #10

Quote:
Originally Posted by Stefanos View Post
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
Sure, "Everyone have they own reason to do something" so I won't try to reasoning any longer. fysiks plugin probably work.

Quote:
Originally Posted by fysiks View Post
That doesn't even make sense, why would anyone do this? amx_ban does both the banning and the kicking already.
I checked the old command page before that post, thought he requested also need [time] which amx_ban was shown doesn't have there. So I think you need to addban then kick.

I double-check on admincmd and it does have [time] already. it was my mistake.

Spoiler
__________________
My plugin:

Last edited by Celena Luna; 05-12-2021 at 03:53.
Celena Luna 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 08:11.


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