mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
35
gamemodes/darkrp/plugins/waypoints/libs/sv_waypoint.lua
Normal file
35
gamemodes/darkrp/plugins/waypoints/libs/sv_waypoint.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ix.waypoint = ix.waypoint or {}
|
||||
ix.waypoint.types = ix.waypoint.types or {}
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
function ix.waypoint.AddWaypoint(position, text, color, time, addedBy, ...)
|
||||
if (!position or !isvector(position) or !position.Add) then
|
||||
ErrorNoHalt("[WAYPOINTS] Invalid position given "..(position or nil))
|
||||
return
|
||||
end
|
||||
position:Add(Vector(0, 0, 30))
|
||||
color = color or color_white
|
||||
time = time or 8
|
||||
|
||||
local waypoint = {
|
||||
pos = position,
|
||||
text = text,
|
||||
color = color,
|
||||
addedBy = addedBy,
|
||||
arguments = {...},
|
||||
time = CurTime() + time
|
||||
}
|
||||
|
||||
PLUGIN:AddWaypoint(waypoint)
|
||||
end
|
||||
Reference in New Issue
Block a user