Jump to content
RAGE Multiplayer Community

Wie kann ich Commands einfügen?


Reture34
 Share

Recommended Posts

  • 2 weeks later...
// Spieler heilen

mp.events.addCommand("heal",(player,target)=>{
    let newTarget = mp.players.at(target);
    if(!target || isNaN(target)) return player.outputChatBox("Benutze /heal <ID>");
    if(newTarget === null) return player.outputChatBox("Unbekannter Spieler");
    newTarget.outputChatBox(`[ADMIN] ${player.name} hat dich geheilt.`);
    newTarget.armour = 100;
    player.notify('~g~Erfolgreich');
    return;
});

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...