Open your creturescripts folder and go to scripts.
Make login2.lua and paste there:
Add in creatureevents.xml:
Make login2.lua and paste there:
Code:
-- Script made by Huggen --
-- Make players can´t log in if it haven´t gone 2 sec from last player --
-- Config --
storage = 9876
seconds = 2
-- Config --
function onLogin(cid)
gone = os.time()
if getGlobalStorageValue(storage)+seconds < gone then
setGlobalStorageValue(storage, os.time())
return TRUE
else
return FALSE
end
return TRUE
end
Add in creatureevents.xml:
Code:
<event type="login" name="PlayerLogin" event="script" value="login2.lua"/>