[SCRIPT] Zcript (Admin tools)

A new update is now available, introducing a lot of new content!
Latest hotfix: 0.7.5.2 (2024-09-10)
  • I have a couple of players I would like to add as moderators and give access to the script commands but without them having access to the default server commands. So that they can kick and ban griefers, edit areas etc, but not be able to spawn items, fly etc.


    Is this possible and how?


    thankyou



    yes and no lol it will be once we work out groups witch will happen just give it time ATM no sorry

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png
  • Doc: http://rwapiref.byethost15.com…1_player_information.html
    file: script.lua


    Added BrokenBones line to heal funktion.
    [lua]function heal(target)
    local tName = target:getPlayerName()
    target:setPlayerHealth(100);
    target:setPlayerHunger(100);
    target:setPlayerThirst(100);
    target:setBrokenBones(false); -- fix broken bones
    target:sendTextMessage("You've been healed !")
    end[/lua]


    Added whispers to be shown on both screens from/to.
    [lua]elseif cmd[1] == "/w" then
    if not cmd[2] then return msgInvalidUsage(event.player) end
    local args = explode(" ", cmd[2], 2)
    if not args[2] then return msgInvalidUsage(event.player) end
    -- Show message to reciver
    local toPlayer = server:findPlayerByName(args[1])
    if not toPlayer then return msgPlayerNotFound(event.player) end
    toPlayer:sendTextMessage(timePrefix{text="[#FF55FF]"..event.player:getName().." whispers: "..args[2]});
    -- Show whisper to creator
    event.player:sendTextMessage(timePrefix{text="[#FF55FF]to "..args[1]..": "..args[2]});
    end[/lua]


    thx for the script, I injoy it so much.

  • This script does not work on 0.6.4.4. I can not go to your server.



  • intresting we seem to be getting an error on another script of ours when getDBID is called too ? might dig more into whats going on here



    had a look and getDBID does seem to be working now back to looking at what it might be

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png

    Edited once, last by yahgiggle ().

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!