Advertisement
Skymagnum

Untitled

May 15th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2.  
  3. local check = tostring(getPlayerStorageValue(cid, 35001)):explode(",")
  4.  
  5.     local timestor = getPlayerStorageValue(cid, 35000)
  6.  
  7.     if (isInArray({"pt", "patent"}, param)) then
  8.         return doPlayerSendTextMessage(cid, 27, "Your patent is " .. check[1] .. ".")
  9.     elseif (isInArray({"life", "health"}, param)) then
  10.         return doPlayerSendTextMessage(cid, 27, "Your health is " .. check[2] .. ".")
  11.     elseif (isInArray({"speed", "spd"}, param)) then
  12.         return doPlayerSendTextMessage(cid, 27, "Your speed is " .. check[3] .. ".")
  13.     elseif (isInArray({"mana", "mn"}, param)) then
  14.         return doPlayerSendTextMessage(cid, 27, "Your mana is " .. check[4] .. ".")
  15.     else
  16.         return doPlayerSendTextMessage(cid, 27, "Your played time is " .. getTime(timestor) .. ".")
  17.     end
  18.  
  19.     return true
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement