AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hello another question :D (https://forums.alliedmods.net/showthread.php?t=24730)

silversinner 03-01-2006 17:08

Hello another question :D
 
Hi again :D 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?

umarsa 03-01-2006 17:10

Re: Hello another question :D
 
Quote:

Originally Posted by silversinner
Hi again :D 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

silversinner 03-01-2006 17:14

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

silversinner 03-01-2006 17:16

well into a plugin

umarsa 03-01-2006 17:17

well u could ope ur console and type in ;

amx_ban "user";amx_kick "user"

that should Ban Then Kick :P

silversinner 03-01-2006 17:22

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

[ --<-@ ] Black Rose 03-01-2006 17:25

amx_ban does automaticly kick... at least mine does?

umarsa 03-01-2006 17:25

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

v3x 03-01-2006 17:40

amx_ban automatically kicks the player afterwards. I don't know what your AMX Mod X is smoking, but I want some.

VEN 03-02-2006 05:40

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)


All times are GMT -4. The time now is 20:26.

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