• 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 request [change temple position]

lolcina

New Member
Joined
Apr 14, 2009
Messages
7
Reaction score
0
Hello!
I need a script that changes players temple position when he enters teleport.
Thanks :D (rep +)
 
PHP:
if item.actionid == 30022 then
		doPlayerSendTextMessage(cid,22, "You are now a citizen of Gaytown.")
		doPlayerSetTown(cid,1)

PHP:
item.actionid == 30022
change the action id on your teleport
Change the playersendtextmessage

And

PHP:
doPlayerSetTown(cid,1)
Replace cid 1 with your town id. you can found it in your map editor,

It can look like this:
PHP:
function onStepIn(cid, item, pos)



	if item.actionid == 30022 then
		doPlayerSendTextMessage(cid,22, "You are now a citzen of GAYTOWN")
		doPlayerSetTown(cid,1)	
	end

	return 1
end
 
Back
Top