• 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!

I need Help

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
A command that when u say this:
!myinfo
It shows:
Name:
Level:
Vocation:
Monster Deaths:
Player Deaths:
Player Kills:

Answer me as soon as possible
 
Try this.
PHP:
function onSay(cid, words, param)

local nick = getCreatureName(cid)
local level = getPlayerLevel(cid)
local vocation = getPlayerVocation(cid)
local kills = getPlayerFrags(cid)
local deaths = getPlayerDeaths(cid)

doPlayerSendTextMessage(cid,20, 'Your informations:')
doPlayerSendTextMessage(cid,20, 'Name: '..nick..' ')
doPlayerSendTextMessage(cid,20, 'Level: '..level..' ')
doPlayerSendTextMessage(cid,20, 'Vocation: '..vocation..' ')
doPlayerSendTextMessage(cid,20, 'Player Kills: '..kills..' ')
doPlayerSendTextMessage(cid,20, 'Player Deaths: '..deaths..' ')

end
return true
end

I dont know about the monsters.
 
LUA:
function onSay(cid, words, param, channel)
	local tmp = {accountId = getPlayerAccountId(cid), ip = getPlayerIp(cid)}
	doPlayerPopupFYI(cid, "Information about player" ..
		"\nName: " .. getCreatureName(cid) ..
		"\nLevel: " .. getPlayerLevel(cid) ..
		"\nVocation: " .. getVocationInfo(getPlayerVocation(cid)).name ..
		"\nDeaths: " .. getPlayerDeaths(cid) ..
		"\nFrags: " .. getPlayerFrags(cid) ..
		"\nGUID: " .. getPlayerGUID(cid) ..
		"\nGroup: " .. getPlayerGroupName(cid) ..
		"\nMagic level: " .. getPlayerMagLevel(cid) ..
		"\nIP: " .. doConvertIntegerToIp(tmp.ip) .. " (" .. tmp.ip .. ")")
	return true
end
 
Back
Top