• 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 bugs Onlogin

Morrison

Intermediate OT User
Joined
Mar 15, 2009
Messages
283
Solutions
3
Reaction score
123
Location
Exive me
GitHub
none
PHP:
function onLogin(cid)

	if getCreatureName(cid) ~= "Account Manager" and isPlayerExample(cid) == false then
		if isPlayerOnline(cid) == false then
			setPlayerStatusOnline(cid)
		else
			doPlayerPopupFYI(cid, "You are already logged in.")
			doRemoveCreature(cid, false)
			return false
		end
	end

	local outfits = {
			name = "Town",
			positions = {
				{x = 1016, y = 1028, z = 6}
		[1] = {
			lookType = math.random(128,134), 
			lookHead = math.random(0,132), 
			lookBody = math.random(0,132), 
			lookLegs = math.random(0,132), 
			lookFeet = math.random(0,132), 
			lookTypeEx = 0, 
			lookAddons = 3
		},
		[2] = {
			name = "Castle",
			positions = {
				{x = 1144, y = 1044, z = 6}
			lookType = math.random(136,142), 
			lookHead = math.random(0,132), 
			lookBody = math.random(0,132), 
			lookLegs = math.random(0,132), 
			lookFeet = math.random(0,132), 
			lookTypeEx = 0, 
			lookAddons = 3
                      End
                End
 
Back
Top