didnt find any script what does this...
!userlimit
Try this:
iMaxLogins = frmHub:GetMaxLogins()
iLevelHubOwner = 0
function ChatArrival(user, data)
if user.iProfile == iLevelHubOwner then
local s,e,sCom, iVal = string.find(data, "%b<>%s+(%S+)%s*(%S*).*|")
if sCom then
if sCom == "!userlimit" then
if iVal == "" then
iVal = iMaxLogins
else
iVal = tonumber(iVal)
end
frmHub:SetMaxLogins(iVal)
user:SendData(frmHub:GetHubBot(), "Max Logins changed to: "..iVal)
return 1
elseif sCom == "!getuserlimit" then
user:SendData(frmHub:GetHubBot(), "Max Logins is set to: "..frmHub:GetMaxLogins())
return 1
end
end
end
end
c ya
thank you, have to test it...
edit
Working just fine but how can i change bots name, it allways says <1> as botname ???
QuoteOriginally posted by Northwind
thank you, have to test it...
edit
Working just fine but how can i change bots name, it allways says <1> as botname ???
change
user:SendData(frmHub:GetHubBot()
to
user:SendData(frmHub:GetHubBotName()
and it will have the hub bot name...
QuoteOriginally posted by madman
QuoteOriginally posted by Northwind
thank you, have to test it...
edit
Working just fine but how can i change bots name, it allways says <1> as botname ???
change
user:SendData(frmHub:GetHubBot()
to
user:SendData(frmHub:GetHubBotName()
and it will have the hub bot name...
thanks Madman :)
can you 6m6m6 or madman add one thing more tot his awesome script. User redirection when hub is full... ;-) like it is in hubs first page, where userlimit is.
QuoteOriginally posted by Northwind
can you 6m6m6 or madman add one thing more tot his awesome script. User redirection when hub is full... ;-) like it is in hubs first page, where userlimit is.
Mayby this will help u (http://board.univ-angers.fr/thread.php?threadid=5390&boardid=28&styleid=1&sid=2e22db016996e533e824aa50e61786cf)
thanks... kiitos ;-)