OTcreator
Active Member
- Joined
- Feb 14, 2022
- Messages
- 439
- Solutions
- 1
- Reaction score
- 48
Hello!
I need script, when staff login to game on broadcast for TFS 1.4.2.
Someone like this:
I need script, when staff login to game on broadcast for TFS 1.4.2.
Someone like this:
Lua:
local groups =
{
[2] = "Tutor",
[3] = "Senior Tutor",
[4] = "GM",
[5] = "Community Manager",
[6] = "God"
}
function onLogin(cid)
if(groups[getPlayerGroupId(cid)] and isPlayerGhost(cid) ~= TRUE) then
doBroadcastMessage(getCreatureName(cid) .. " has now logged in. Position: " .. getGroupInfo(groups[getPlayerGroupId(cid)]).name .. ")")
return TRUE
end
return TRUE
end