note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to 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.