Advertisement
Bitupx
Nov 1st, 2022
10
0
Never
This is comment for paste securemode
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --talkaction
  2.  
  3. local msg = "Now your PvP system is %s."
  4. function onSay(cid, words, param)
  5. local _table = {
  6. ["on"] = {"active", 1},
  7. ["off"] = {"disabled", 0},
  8. }
  9. if _table[param:lower()] then
  10. local mode = _table[param:lower()]
  11. setPlayerStorageValue(cid, 91821, mode[2])
  12. doPlayerSendTextMessage(cid, 27, msg:format(mode[1]))
  13. end
  14. return true
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement