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

Hi I Want Those Script

GOD lolsito

New Member
Joined
Aug 16, 2010
Messages
78
Reaction score
1
When A staff logg in the server broadcast A message [NAME]Hass Logged In And It Is a [GROUP].

 
Put this in creaturescripts.xml
XML:
	<event type="login" name="HasLoggedIn" event="script" value="hasloggedin.lua"/>

and this is the script:
Lua:
function onLogin(cid)
	registerCreatureEvent(cid, "hasLoggedIn")
		
	local groups = {3,4,5,6} -- Witch group should be broadcasted?
	if(isInArray(groups, getPlayerGroupId(cid))) then
		doBroadcastMessage(getCreatureName(cid) .. " has logged in and he is a ".. getPlayerGroupName(cid) ..".")
	end
	return true
end
 
Back
Top