AllowNickNameCharacter
cảnh báo
Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!
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.