Ir para conteúdo

Featured Replies

Postado
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) >= 10 and getPlayerLevel (cid) <=20 then
return true
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce precisa estar entre o lv 10 e 20.")
doTeleportThing(cid, fromPosition, false)
end
end

Eu não sei scriptar muito bem ainda .-.

Mas deve funcionar, caso queira alterar o lv é só mudar ali no 10 e no 20.

 

Se não souber "instalar" da um toque, que eu ajudo .-.

Postado
Em 28/04/2016 at 14:58, RXSora disse:

function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) >= 10 and getPlayerLevel (cid) <=20 then
return true
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce precisa estar entre o lv 10 e 20.")
doTeleportThing(cid, fromPosition, false)
end
end

 

 

Pode se utilizar assim também, fica mais organizado.

function onStepIn(cid, item, position, fromPosition)
	if getPlayerLevel(cid) >= 10 and getPlayerLevel(cid) <= 20 then
		return true
	end
	
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in between the level 10 and 20.")
	doTeleportThing(cid, fromPosition)
	return true
end

 

Postado
1 hora atrás, vankk disse:

 

Pode se utilizar assim também, fica mais organizado.


function onStepIn(cid, item, position, fromPosition)
	if getPlayerLevel(cid) >= 10 and getPlayerLevel(cid) <= 20 then
		return true
	end
	
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in between the level 10 and 20.")
	doTeleportThing(cid, fromPosition)
	return true
end

 

Nesse caso a mensagem seria enviada mesmo ele estando entre o LV solicitado né ? E passaria só se estivesse entre o LV solicitado.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96k
  • Posts 512.6k

Informação Importante

Confirmação de Termo