Advertisement
Guest User

Untitled

a guest
May 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. function onSay(player, words, param)
  2.  
  3. local t = string.explode(param, ",")
  4.  
  5.       local pid = tostring(t[1])
  6.       local mount = tonumber(t[2])
  7.      
  8.       if (not pid) then
  9.          return doPlayerSendTextMessage(player, 27, "É necessário que especifíque o nome do Player.")
  10.       end
  11.      
  12.       if (not mount) then
  13.          return doPlayerSendTextMessage(player, 27, "É necessário que especifíque a mountaria a ser adicionada.")
  14.       end
  15.      
  16.       doPlayerAddMount(pid, mount)
  17.       player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Voce acabou de receber uma mount. Cheque-a.")
  18.      
  19.  
  20.  return true
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement