AR/getPlayerFromName: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==تكوين الجملة== <syntaxhighlight lang="lua"> player getPlayerFromName ( string playerName ) </syntaxhighlight> {{OOP||اللاعب||}} ===الارقمنت=== * '''playerName''': اسم ...") |
(→مثال) |
||
Line 13: | Line 13: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function send( player,command, playerName, ... ) | function send( player,command, playerName, ... ) | ||
message = table.concat({...}, " ") | |||
outputChatBox("(PM) "..getPlayerName(player)..": "..message.."",getPlayerFromName(playerName),255,255,0) | |||
end | end | ||
addCommandHandler("إرسال", send) | addCommandHandler("إرسال", send) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==آخر== | ==آخر== | ||
{{Player functions}} | {{Player functions}} | ||
[[ru:getPlayerFromName]] | [[ru:getPlayerFromName]] |
Latest revision as of 15:14, 29 July 2015
تكوين الجملة
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)
آخر
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState