AR/getPlayerFromName
From Multi Theft Auto: Wiki
Contents
تكوين الجملة
player getPlayerFromName ( string playerName )
OOP Syntax Help! I don't understand this!
- Method: اللاعب(...)
الارقمنت
- playerName: اسم اللاعب الذي تريد إحضاره
إرجاع
- يقوم بإرجاع اللاعب الذي تم اختياره من قِبل اسمه
مثال
على سبيل المثال، يقوم هذا الامر "إرسال" بأرسال رسالة خاصة للاعب المحدد من الأمر
function send( player,command, playerName, ... ) message = table.concat({...}, " ") outputChatBox("(PM) "..getPlayerName(player)..": "..message.."",getPlayerFromName(playerName),255,255,0) end addCommandHandler("إرسال", send)
آخر
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS