Raised This Month: $ Target: $400
 0% 

Kick nick SteamPlayer, 1 min, reason "Fix your nick"


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Haikiri_kun
BANNED
Join Date: Jul 2010
Old 07-23-2010 , 17:08   Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#1

Hello.
First, the important part.
The Plugin that I want, necessity to make an only thing.
It forbids a player who uses nick SteamPlayer per 1 minute and in the space of the reason he will see the phrase Fix your nick.

(Why…)
I am tired of the noob players that had just started to play L4D and they shoot in the others… bla bla bla… Then I decided to make one plugin. The problem is, I never tried to learn a programming language. I understand now how difficult it is.

I believe that is so simple for you.

Since now, thanks a lot!
Haikiri_kun is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-23-2010 , 17:14   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#2

Quote:
Originally Posted by Haikiri_kun View Post
Hello.
First, the important part.
The Plugin that I want, necessity to make an only thing.
It forbids a player who uses nick SteamPlayer per 1 minute and in the space of the reason he will see the phrase Fix your nick.

(Why…)
I am tired of the noob players that had just started to play L4D and they shoot in the others… bla bla bla… Then I decided to make one plugin. The problem is, I never tried to learn a programming language. I understand now how difficult it is.

I believe that is so simple for you.

Since now, thanks a lot!

.....What?

You want a plugin that checks if a player's name is "SteamPlayer", gives them one minute to change their name then kicks them if they don't. Is that correct?
Afronanny is offline
Haikiri_kun
BANNED
Join Date: Jul 2010
Old 07-24-2010 , 01:38   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#3

Oops..
Sorry if it is not clear.
Once a player enter the game, he will be kicked immediately.
The time "1 minute" is how much he will need to wait before enter again, a ban.

Without forget de reason "Fix yout nick".

I am doing it manually with an admin command "sm_ban SteamPlayer 1 Fix you nick"

Can you do it for me(us) who belive it is a good idea?
(And sorry for my poor english)
Haikiri_kun is offline
rotab
Junior Member
Join Date: Dec 2005
Location: Sweden
Old 07-24-2010 , 15:32   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#4

Something like this?

PHP Code:
public OnClientPostAdminCheck(client)
{
    
decl String:name[64];
    
GetClientName(clientnamesizeof(name));
    
    if (
StrEqual(name"SteamPlayer"false))
    {
        new 
String:reason[32] = "nick";
        new 
String:kickMessage[32] = "Fix your nick";
        
BanClient(client1BANFLAG_AUTHIDreasonkickMessage);
    }

rotab is offline
Haikiri_kun
BANNED
Join Date: Jul 2010
Old 07-24-2010 , 18:44   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#5

THANK YOU!!!

Works perfectly!

Last edited by psychonic; 07-25-2010 at 20:22. Reason: don't attach plugins without source
Haikiri_kun is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-24-2010 , 18:50   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#6

Quote:
Originally Posted by Haikiri_kun View Post
THANK YOU!!!

Works perfectly!
I understand that this is just the code above compiled, but you shouldn't be attaching SMX files that will compile on the forum. Instead, put the code in a file ending in .sp and attach that to your post and the forum will provide links to both source and compiled versions.
__________________
asherkin is offline
Ph03n1X
Member
Join Date: Apr 2010
Location: Latvia, Riga
Old 07-24-2010 , 19:12   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#7

to Haikiri_kun:
Why do you want to kick players with SteamPlayer names? Because they using rev_emu to connect to your nonSteam server and don't know how to change name ??

Last edited by Ph03n1X; 07-24-2010 at 19:15.
Ph03n1X is offline
Haikiri_kun
BANNED
Join Date: Jul 2010
Old 07-24-2010 , 23:08   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#8

Sorry again.

The reason to ban them but just per a minute is because statistically they are too much newbie to play with us, by the simple logic "if they don't iven know how to change the nick, what can they do playing???".
Probably shoot everyone who is not a zombie and this make me turn in a hulk/tank.

About the smx, i am sorry, living and learning.
Attached Files
File Type: sp Get Plugin or Get Source (nicker1.0.0.0.sp - 288 views - 651 Bytes)
Haikiri_kun is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-25-2010 , 07:46   Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
#9

Quote:
Originally Posted by Ph03n1X View Post
to Haikiri_kun:
Why do you want to kick players with SteamPlayer names? Because they using rev_emu to connect to your nonSteam server and don't know how to change name ??
What I looked from web, I agreed what Ph03n1X said.
Sticky: NO STEAM = NO SUPPORT
Bacardi is offline
Closed Thread



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 03:41.


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