Hello.
1) All informations are visible but i need this title:
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! "
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! "