• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

PZ after player logins to the game

Galaxy

New Member
Joined
Feb 24, 2011
Messages
108
Reaction score
1
Location
Ireland/Carlow
I'd like to prevent players from loggin in and logging out fast because it is bugging server. Is there a script for that or is do I have to change something in sources? :S I am pretty shit at editing sources of server so Id love if there is a script for that :)

When player logins to the game, he has pz for 20 seconds :)

Thanks! :)

Im so sorry. I was suppose to post this in "Request" board... Could moderator of this forum move this thread? Id be greatful... Its just, Im always checking Support board and I got used to post in here haha. Sorry again
 
LUA:
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20 * 1000)

function onLogin(cid)
	doAddCondition(cid, condition)
	return true
end

LUA:
registerCreatureEvent(cid, "spam")

LUA:
<event type="login" name="spam" event="script" value="spam.lua"/>

Creaturescripts.
 
thanks, :**

and, just 1 question.

Is there a possibility that this won't make pz to Gods, cms and gms? (not for st and tutors tho - they are like normal players).

if not then thats fine :)
 
LUA:
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20 * 1000)

function onLogin(cid)
	if getPlayerAccess(cid) < 3 then
		doAddCondition(cid, condition)
	end
	return true
end
 
Back
Top