• 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!

script onlogin

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
how to make script onlogin who can block login all players and allow login only gm
block login all players only to start date like in 13.07.2011 12:00 is start
when player login he can't login and script say to him server start [date] in winow
 
no ;s its sux.. becouse i can forgot about this and what if server has been crashed and auto start..
for 2 is sux becouse i have fast login and close server onlogin better..
 
Add this code inside onLogin function
Code:
if getPlayerAccess(cid) < GM_ACCESS then
	return false
end

change GM_ACCESS to int access from your groups.xml (TFS, default value 4 :) ) or data base (OTServ).
 
Back
Top