Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. PLUGIN = nil
  2.  
  3. function Initialize(Plugin)
  4.     Plugin:SetName("HomeTP")
  5.     Plugin:SetVersion(2)
  6.  
  7.   cPluginManager.BindCommand("/addhome", "hometp.addhome", Addhome, " ~ Teleports a player home");
  8.  
  9.     -- Hooks
  10.  
  11.     PLUGIN = Plugin -- NOTE: only needed if you want OnDisable() to use GetName() or something like that
  12.  
  13.     -- Command Bindings
  14.  
  15.     LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
  16.     return true
  17. end
  18.  
  19. function SetHome(Split)
  20.  
  21. if (#Split ~= 2) then
  22.         -- There was more or less than one argument (excluding the "/addhome" bit)
  23.         -- Send the proper usage to the player and exit
  24.         Player:SendMessage("Usage: /addhome [home name]")
  25.         return true
  26.     end
  27.  
  28. local coordinateX = cPlayer.GetPosX;
  29. local coordinateY = cPlayer.GetPosY;
  30. local coordinateZ = cPlayer.GetPosZ;
  31.  
  32. local homeName;
  33.  
  34.  
  35. end
  36.  
  37. function OnDisable()
  38.     LOG(PLUGIN:GetName() .. " is shutting down...")
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement