AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Kick nick SteamPlayer, 1 min, reason "Fix your nick" (https://forums.alliedmods.net/showthread.php?t=133281)

Haikiri_kun 07-23-2010 17:08

Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
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!

Afronanny 07-23-2010 17:14

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
Quote:

Originally Posted by Haikiri_kun (Post 1249391)
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?

Haikiri_kun 07-24-2010 01:38

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
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)

rotab 07-24-2010 15:32

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
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);
    }



Haikiri_kun 07-24-2010 18:44

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
THANK YOU!!!

Works perfectly!

asherkin 07-24-2010 18:50

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
Quote:

Originally Posted by Haikiri_kun (Post 1250505)
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.

Ph03n1X 07-24-2010 19:12

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
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 :D ??

Haikiri_kun 07-24-2010 23:08

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
1 Attachment(s)
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.

Bacardi 07-25-2010 07:46

Re: Kick nick SteamPlayer, 1 min, reason "Fix your nick"
 
Quote:

Originally Posted by Ph03n1X (Post 1250522)
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 :D ??

What I looked from web, I agreed what Ph03n1X said.
Sticky: NO STEAM = NO SUPPORT


All times are GMT -4. The time now is 03:41.

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