• 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 bug ?

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
PHP:
function onUse(cid, item, frompos, item2, topos)

player1 = getThingfromPos(topos)

lol = getPlayerName(player1.uid)

local nick = getCreatureName(player1.uid)
local ki = getPlayerMagLevel(player1.uid)
local lvl = getPlayerLevel(player1.uid)
local mana = getCreatureMana(player1.uid)
local hp = getCreatureHealth(player1.uid)
local maxmana = getCreatureMaxMana(player1.uid)
local maxhp = getCreatureMaxHealth(player1.uid)
local access = getPlayerAccess(player1.uid)

if isPlayer(player1.uid) == 1 then
doPlayerSendCancel(cid,"You can use scouter only on players.") 


elseif access <= 3 then
doPlayerSendTextMessage(cid,20, 'Checking information about: '..lol..'')
doPlayerSendTextMessage(cid,20, 'Nick: '..nick..'')
doPlayerSendTextMessage(cid,20, 'Level: '..lvl..'')
doSendMagicEffect(getCreaturePosition(cid), 1)
doSendAnimatedText(getCreaturePosition(cid), "Checking", 200)
doPlayerSendTextMessage(lol,cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Somebody are check your informations using scouter.')


	else 
		return false
	end
	return true
end

1) All informations are visible but i need this title:
PHP:
doPlayerSendTextMessage(lol,cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Somebody are check your informations using scouter.')

is message to player who are checked by this item, now it show for player who checking :/


2) Is possible to add exhaust to this item ?
Example: " You must wait 2 minutes to check again! "
 
@Up
No error
I just need to put in script 2 functions:
1) Subtitle to player who are checked by another player:
"Somebody has check your information"
And exhaust like 5 minutes until next use on next player.
 
Back
Top