Hello everyone,
I am proud to release our !staff command. This will display all the staff members from Tutors to Gods with rank names.
It will not display a staff member which is in ghost!
If there are no staff members online or everyone is in /ghost it will display this:
Put this in your Talkactions.xml:
Now the script:
I hope you guys find this useful!
Sincerely,
Hiromath
I am proud to release our !staff command. This will display all the staff members from Tutors to Gods with rank names.
It will not display a staff member which is in ghost!
If there are no staff members online or everyone is in /ghost it will display this:
Put this in your Talkactions.xml:
Code:
<talkaction words="!staff" event="script" value="staff.lua"/>
Now the script:
PHP:
function onSay(cid, words, param, channel)
local Info = db.getResult("SELECT * FROM `players` WHERE `online` = '1' AND `group_id` > 1")
local PlayerString = "Online Staff Members:\n"
if Info:getID() ~= -1 then
local count, i = Info:getRows(false), 0
repeat
PlayerString = PlayerString .. Info:getDataString("name") .. " - "
if Info:getDataInt("group_id") == 2 then
PlayerString = PlayerString .. "Tutor"
elseif Info:getDataInt("group_id") == 3 then
PlayerString = PlayerString .. "Senior Tutor"
elseif Info:getDataInt("group_id") == 4 then
PlayerString = PlayerString .. "Game Master"
elseif Info:getDataInt("group_id") == 5 then
PlayerString = PlayerString .. "Community Manager"
elseif Info:getDataInt("group_id") == 6 then
PlayerString = PlayerString .. "God"
end
PlayerString = PlayerString .. "\n"
until not(Info:next())
Info:free()
else
PlayerString = PlayerString .. "No staff online, try again later"
end
doPlayerPopupFYI(cid, PlayerString);
return true
end
I hope you guys find this useful!
Sincerely,
Hiromath
Last edited: