AR/setPlayerNametagShowing
Jump to navigation
Jump to search
هذه الوظيفة تستخدم لحذف واظهار اسم الاعب الذي يكون عليه
Syntax
bool setPlayerNametagShowing ( player thePlayer, bool showing )
شرح الارقمنتات
- thePlayer: الاعب الذي تريد اظهار\اخفاء اسمه
- showing: استخدم true\false حتى تخفي\تظهر الاسم
true = اظهار الاسم , false = اظفار الاسم .
Example
This script will turn off player tags for everyone
function onResourceStart ( ) local players = getElementsByType ( "player" ) for key, player in ipairs ( players ) do -- لوب لكل الاعبين setPlayerNametagShowing ( player, false ) -- اخفاء اسمائهم (false) end end addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) --مثال اخر function onPlayerJoin ( ) setPlayerNametagShowing ( source, false ) --افخاء اسمه (false end addEventHandler ( "onPlayerJoin", root, onPlayerJoin ) --حدث عندما الاعب يدخل
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerMoney
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerMoney
- setPlayerMuted
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- setPlayerTeam
- setPlayerWantedLevel
- showPlayerHudComponent
- spawnPlayer
- takePlayerMoney
- getPlayerFromName
- getPlayerIP
- getPlayerName
- redirectPlayer
- setPlayerName