Jump to content
RAGE Multiplayer Community

Search the Community

Showing results for tags 'личные сообщения'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

Found 1 result

  1. Добавляем в папку `packages/keker/commands` файл `pm.js` со следующим содержанием: findPlayerByIdOrNickname = playerName => { var foundPlayer = null; // Проверяем, число ли это if (playerName == parseInt(playerName)) { // Если число - ищем среди ID'ов пользователей foundPlayer = mp.players.at(playerName); } // Если пользователь не найден по ID - ищем по никам if (!foundPlayer) { mp.players.forEach((_player) => { if (_player.name === playerName) { foundPlayer = _player; } }); } return foundPlayer; }; module.exports = {
×
×
  • Create New...