• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Info command help please!

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
i have a player info commend !info Killer
but there stand a player whit this name not online its by all player please help me ! :D


PHP:
<talkaction words="!info" script="infoo.lua" />


infoo.lua

PHP:
function onSay(cid,words,param)
local player = getPlayerByName(param)
	if getPlayerAccess(cid) >= 0 then
		if isPlayer(player) == 1 then
			book = doPlayerAddItem(cid,1986,1)
			doSetItemText(book,'Information about '..getPlayerName(player)..' : \nLevel: '..getPlayerLevel(player)..';\nMagic Level: '..getPlayerMagLevel(player)..'.\n\nSkills: \nFist: '..getPlayerSkill(player,0)..';\nClub: '..getPlayerSkill(player,1)..';\nSword: '..getPlayerSkill(player,2)..';\nAxe: '..getPlayerSkill(player,3)..';\nDistance: '..getPlayerSkill(player,4)..';\nShield: '..getPlayerSkill(player,5)..';\nFishing: '..getPlayerSkill(player,6)..'.\n\nCurrent Position:\nX='..getPlayerPosition(player).x..' Y='..getPlayerPosition(player).y..' Z='..getPlayerPosition(player).z..'\nAccess= '..getPlayerAccess(player)..'\nCurrent Health= '..getPlayerHealth(player)..'\nCurrent Mana= '..getPlayerMana(player)..'\nPlayer Vocation Id = '..getPlayerVocation(player)..'\n\nMoney:\nCrystal Coins= '..getPlayerItemCount(player,2160)..'\nPlatinum Coins= '..getPlayerItemCount(player,2152)..'\nGold Coins= '..getPlayerItemCount(player,2148)..'\n----End Here----')
		else
			doPlayerSendTextMessage(cid,22,'A player with this name is not online')
		end
	else
		return 0
	end
end
 
Back
Top