Git Product home page Git Product logo

lj_checkrpname's Introduction

lj_checkrpname.inc

(RUS):

Просто кусочек кода, может практически на 99.8% отсеять игроков с никами не соответствующими RolePlay режиму (SA-MP).

Использование (пример):

#include <lj_checkrpname.inc> // add to all includes (on top)

public OnPlayerConnect(playerid) // default SA-MP function
{
    CheckRPName(playerid); // check player name with use lj_checkrpname.inc

    return 1;
}

Особенности:

  • Определяет и уведомляет игрока о недостающей длинне первой или второй части ника. (Перед или после "_" разделителя.)
  • Определяет и уведомляет игрока о запрещенных символах в первой или второй части ника.
  • Определяет и уведомляет игрока о нескольких заглавных букв в первой или второй части ника.
  • Определяет и уведомляет игрока о недостающей первой заглавной буквы в первой или второй части ника.
  • Определяет и уведомляет игрока о нескольких разделителей в нике.

(Предупреждение! Это не готовый код который вы можете использовать в любом вашем проекте, данный код иногда требует некоторых изменений именно мод ваш игровой режим!)

(ENG):

Just a piece of code on nearly 99.8% weed out players with nicknames are not relevant to the RolePlay mode (SA-MP).

Usage (example):

#include <lj_checkrpname.inc> // add to all includes (on top)

public OnPlayerConnect(playerid) // default SA-MP function
{
    CheckRPName(playerid); // check player name with use lj_checkrpname.inc

    return 1;
}

Features:

  • Determines and notifies the player about missing the first length or the second part of nick. (Before or after the "_" separator.)
  • Determines and notifies the player of the prohibited characters in the first or second part of nick.
  • Determines and notifies the player about a few capital letters in the first or second part of nick.
  • Determines and notifies the player about missing the first capital letter in the first or second part of nick.
  • Determines and notifies the player about several separators at nick.

(Warning! This is not finished code that you can use in any of your project, this code sometimes requires some changes of your mod game mode!)

lj_checkrpname's People

Contributors

namielusi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.