AllowNickNameCharacter
注意
此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!
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.