magista
RL name " Amir reda "
Hello guys,
I need a movement script if the player member of a guild he will teleported to the waiting room and then a broadcast message will announce that tha player name joined the waiting room and count how many players from his guild in waiting room . Maximum 15 players players of same guild . Last thing maximum guilds that can join this room are 4 guilds .
can any1 edit this ??
I need a movement script if the player member of a guild he will teleported to the waiting room and then a broadcast message will announce that tha player name joined the waiting room and count how many players from his guild in waiting room . Maximum 15 players players of same guild . Last thing maximum guilds that can join this room are 4 guilds .
can any1 edit this ??
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local teleportto = {x = 32046, y = 31802, z = 7} -- waiting room
if isPlayer(cid) then
if getPlayerGuildId(cid) > 0 then
doBroadcastMessage(getPlayerName(cid).." from guild "..getPlayerGuildName(cid).." has been joined War Event.This guild have now Players in waiting room", MESSAGE_EVENT_ADVANCE)
setGlobalStorageValue(1200,getGlobalStorageValue(1200)+1)
doTeleportThing(cid, teleportto)
doSendMagicEffect(teleportto,CONST_ME_TELEPORT)
doPlayerSetStorageValue(cid, 9001,1)
else
doTeleportThing(cid, fromPosition)
doSendMagicEffect(fromPosition,CONST_ME_POFF)
doPlayerSendCancel(cid, "You Don't Have A Guild")
end
end
return true
end
Last edited: