Raised This Month: $ Target: $400
 0% 

Hello another question :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-01-2006 , 17:08   Hello another question :D
Reply With Quote #1

Hi again right i want to come up with a amx_kickban plugin that bans the player and also kicks them at the same time, i know how to script a simple kick command its just gettin it to be a ban one. Can anyone help?
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 03-01-2006 , 17:10   Re: Hello another question :D
Reply With Quote #2

Quote:
Originally Posted by silversinner
Hi again right i want to come up with a amx_kickban plugin that bans the player and also kicks them at the same time, i know how to script a simple kick command its just gettin it to be a ban one. Can anyone help?
Well if you amx_ban they will get banned and kicked anyway
__________________
umarsa is offline
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-01-2006 , 17:14  
Reply With Quote #3

That never happens on my server.... i have to ban them and then kick them.... and i just want to know how to combine a kick command and a ban command into one.... Cause im curious on how to script! and any tips are good tips
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-01-2006 , 17:16  
Reply With Quote #4

well into a plugin
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 03-01-2006 , 17:17  
Reply With Quote #5

well u could ope ur console and type in ;

amx_ban "user";amx_kick "user"

that should Ban Then Kick
__________________
umarsa is offline
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-01-2006 , 17:22  
Reply With Quote #6

eh... true.... but id still like to know how to combine 2 cmds into one plugin cause i havnt seen a amx_kick&ban plugin yet...
im sure there is one but still id like to know
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-01-2006 , 17:25  
Reply With Quote #7

amx_ban does automaticly kick... at least mine does?
[ --<-@ ] Black Rose is offline
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 03-01-2006 , 17:25  
Reply With Quote #8

lol, i dont think theres eny point unless u make 1 with A menu conatining more than just ban/kick, like a menu that does more than just that
umarsa is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-01-2006 , 17:40  
Reply With Quote #9

amx_ban automatically kicks the player afterwards. I don't know what your AMX Mod X is smoking, but I want some.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-02-2006 , 05:40  
Reply With Quote #10

Anyway i've done that a while ago to ban with the reason so i can help you.

Here is the simple example of Kick and Ban by IP (not the whole plugin)
Code:
        new ip[16]         get_user_ip(id, ip, 15, 1)         server_cmd("kick #%d ^"You have been banned for flooding the server.^"", get_user_userid(id))         server_exec()         server_cmd("addip 5 ^"%s^"", ip)
VEN 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 20:26.


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