[SCRIPT] Zcript (Admin tools)

  • 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

    76561198018554331.png


    :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:


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

  • 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

    76561198018554331.png


    :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:


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

    Edited once, last by yahgiggle ().

Participate now!

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