Advertisement
YOURWORSTTACO

Untitled

Aug 31st, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. PLUGIN.name = "Civil Clearance Level"
  2. PLUGIN.author = "Qemist"
  3. PLUGIN.desc = "Adds an apply option on CID cards that makes you say the name and digits associated with it."
  4.  
  5. function PLUGIN:SchemaInitialized()
  6. local item = nut.item.Get("cid")
  7.  
  8. if (!item) then return end
  9.  
  10. item.functions = item.functions or {}
  11. item.functions.Apply = {
  12. text = "Apply",
  13. icon = "icon16/user_comment.png",
  14. run = function(itemTable, client, data, entity, index)
  15. client:ConCommand("say "..(data.Name or "no one")..", "..(data.Digits or "00000"))
  16. timer.Simple(0.5,
  17. function()
  18. client:ConCommand("say /recognize")
  19. end)
  20.  
  21. return false
  22. end
  23. }
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement