warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
AllowNickNameCharacter
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Allows a character to be used in the nick name.
Name | Description |
---|---|
character | The character to allow or disallow. |
bool:allow | true-Allow, false-Disallow |
Returns
This function does not return any specific values.
Examples
public OnGameModeInit()
{
AllowNickNameCharacter('*', true); // Allow char *
AllowNickNameCharacter('[', false); // Disallow char [
AllowNickNameCharacter(']', false); // Disallow char ]
return 1;
}
Related Functions
- IsNickNameCharacterAllowed: Checks if a character is allowed in nickname.
- IsValidNickName: Checks if a nick name is valid.
- SetPlayerName: Sets the name of a player.
- GetPlayerName: Gets the name of a player.