• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Request a new Talkaction PLX PLX PLX SOMEONE DO IT!

JoSePh15_

Well-Known Member
Joined
Jan 28, 2010
Messages
1,766
Reaction score
59
I'm hosting a server without site...and I'd like to add a talkaction to find out who is gm and who is not...It works as following (I'm using Crying Damson TFS V 0.3.6 pl1):

A player say !gms then a screen popup and it says the following:
God:
Name
Community manager:
Name
Gamemaster:
Name
Seniour Tutor:
Name
Tutor:
Name.

If there is no seniour tutor or w.e. the Group is it don't show it...
I give rep someone give it!

<You can do it with params if it is gonna be easier!:wub:>
 
get some1 to improve it
LUA:
function onSay(cid, words, param)
           if getPlayerGroupId == 2 then
                     for _, cid in ipairs(getPlayersOnline()) do
                                 local words = "Currently tutors online are " .. (getPlayerGroupId == 2) .. ""
                                 doPlayerPopupFYI(cid, words)
                      end
           elseif getPlayerGroupId == 3 then
                      for _, cid in ipairs(getPlayersOnline()) do 
                                  local words1 = "Currently senior tutors online are " .. (getPlayerGroupId == 3) .. ""
                                  doPlayerPopupFYI(cid, words1)
                      end
           elseif getPlayerGroupId == 4 then
                      for _, cid in ipairs(getPlayersOnline()) do
                                  local words2 = "Currently GMs online are " .. (getPlayerGroupId == 4) .. ""
                                  doPlayerPopupFYI(cid, words2)
                      end
           elseif getPlayerGroupId == 5 then
                      for _, cid in ipairs(getPlayersOnline()) do
                                  local words3 = "Currently Cms online are " .. (getPlayerGroupId == 5) .. ""
                                  doPlayerPopupFYI(cid, words3)
                      end
           elseif getPlayerGroupId == 6 then
                      for _, cid in ipairs(getPlayersOnline()) do
                                  local words4 = "Currently Gods online are " .. (getPlayerGroupId == 6) .. ""
                                  doPlayerPopupFYI(cid, words4)
                      end
           end
return true
end

it aint gonna work
 
Back
Top