Facebook
From Morose Hornbill, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 63
  1. function onSay(cid, words, param, channel)
  2. checkExhausted(cid, 1000, 5) -- zawed el line da ta7t kol function onSay
  3.         if (exhaustion.get (cid, 99901)) then
  4.         doPlayerSendCancel (cid, "You must wait "..exhaustion.get (cid, 99901).. " to use this command again!")
  5. return TRUE
  6. else
  7.         exhaustion.set(cid, 99901, 2)
  8.         end
  9.         if(param == '') then
  10.                 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
  11.                 return true
  12.         end
  13.  
  14.         local pid = getPlayerByNameWildcard(param)
  15.         if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
  16.                 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
  17.                 return true
  18.         end
  19.  
  20.         local tmp = {accountId = getPlayerAccountId(pid), ip = getPlayerIp(pid)}
  21.         local pos = getCreaturePosition(pid)
  22.         doPlayerPopupFYI(cid, "Information about player" ..
  23.                 "\nName: " .. getCreatureName(pid) ..
  24.                 "\nGUID: " .. getPlayerGUID(pid) ..
  25.                 "\nGroup: " .. getPlayerGroupName(pid) ..
  26.                 "\nAccess: " .. getPlayerAccess(pid) ..
  27.                 "\nVocation: " .. getVocationInfo(getPlayerVocation(pid)).name ..
  28.                 "\nStatus:" ..
  29.                         "\nLevel - " .. getPlayerLevel(pid) .. ", Magic Level - " .. getPlayerMagLevel(pid) .. ", Speed - " .. getCreatureSpeed(pid) ..
  30.                         "\nHealth - " .. getCreatureHealth(pid) .. " / " .. getCreatureMaxHealth(pid) .. ", Mana - " .. getCreatureMana(pid) .. " / " .. getCreatureMaxMana(pid) ..
  31.                         "\nSkills:" ..
  32.                         "\nFist - " .. getPlayerSkillLevel(pid, SKILL_FIST) .. ", Club - " .. getPlayerSkillLevel(pid, SKILL_CLUB) .. ", Sword - " .. getPlayerSkillLevel(pid, SKILL_SWORD) .. ", Axe - " .. getPlayerSkillLevel(pid, SKILL_AXE) ..
  33.                         "\nDistance - " .. getPlayerSkillLevel(pid, SKILL_DISTANCE) .. ", Shielding - " .. getPlayerSkillLevel(pid, SKILL_SHIELD) .. ", Fishing - " .. getPlayerSkillLevel(pid, SKILL_FISHING) ..
  34.                 "\nCash:" ..
  35.                         "\nCrystal - " .. getPlayerItemCount(pid, 2160) .. ", Platinum - " .. getPlayerItemCount(pid, 2152) .. ", Gold - " .. getPlayerItemCount(pid, 2148) ..
  36.                         "\nBalance: " .. getPlayerBalance(pid) ..
  37.                         "\nPosition: [X - " .. pos.x .. " | Y - " .. pos.y .. " | Z - " .. pos.z .. "]" ..
  38.                 "\n\nInformation about account" ..
  39.                 "\nName: " .. getPlayerAccount(pid) ..
  40.                 "\nID: " .. tmp.accountId ..
  41.                 "\nNotations: " .. getNotationsCount(tmp.accountId) ..
  42.                 "\nIP: " .. doConvertIntegerToIp(tmp.ip) .. " (" .. tmp.ip .. ")")
  43.         return true
  44. end