adrianoswatt

GlobalStorage

Oct 23rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function onSay(cid, words, param)
  2. local t = string.explode(param, ",")
  3.     if(not t[2]) then
  4.         doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[GlobalStorage: "..t[1].."] = "..getGlobalStorageValue(t[1])..".")
  5.     else
  6.         setGlobalStorageValue(t[1], t[2])
  7.     end
  8. return true
  9. end
Advertisement
Add Comment
Please, Sign In to add comment