Advertisement
Combreal

testagdata01.lua

Jan 6th, 2015
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. -- Test gettagdata on bloodgulch using the scorpion's collision adress with sparky's plugin --
  2.  
  3. scorpion_coll_address = 0xAF9FD0
  4.  
  5. function GetRequiredVersion() return 200 end
  6.  
  7. function OnScriptLoad(processid, game, persistent) end
  8.  
  9. function OnServerChat(player, type, message)
  10.     local response = nil
  11.     if player then
  12.         if string.lower(message) == "tag" then
  13.             local response = false
  14.             local tag_name_address = readdword(scorpion_coll_address + 0x10)
  15.             local tag_name = readstring(tag_name_address)
  16.             privatesay(player, the_tag_name, false)
  17.             return response
  18.         end
  19.     end
  20.     return response
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement