Restricted (Read Only) > Moderators

[Tool] Prop Spawn Checker [ClientSide]

(1/1)

Rbn:
Here is a Tool to detect:

  What user spawned and the model of the prop he spawned in the console, For Phx/Wire server.

This is an Improved Version of my Last Spawn Checker, Have fun.

The place for this is

lua/autorun/client

If you do not have it, create the folder.

http://ruben.randomgs.com/Downloads/PropSpawnChecker.lua Right click, Save as...

Report any bugs to me, inside lua there are some usefull tips and warnings ;).

Rbn:
Bump <- i guess this means, put on top again?. NPI = No fucking idea, in spanish.


--- Code: ---if not CLIENT then return end

local turn = false

--I remember a func to create CreateConVar auto bool toggle, but yeh...........

local function printProp(prop)
local pEnt = prop:GetNWEntity("OwnerObj")
if IsValid(pEnt) then
print( "Player: " .. pEnt:Nick() .. " Spawned: " .. prop:GetModel())
else
timer.Simple(1.5, function() if IsValid(prop) then printProp(prop) end end)
end
end

concommand.Add("ShowProps", function(p,c,a)
if !turn then
hook.Add("OnEntityCreated", "SpawnCheck", printProp)
turn = not turn
print("Turned ON: Showing Names on Spawned props.")
else
hook.Remove("OnEntityCreated", "SpawnCheck")
turn = not turn
print("Turned OFF: Removed Hook.")
end
end)
--fak toggle bigger than the script function lol.

--- End code ---

http://filesmelt.com/dl/spawncheck.lua

Fixed for Shitmod13
Fixed that stupid moment when someone spawned something and instantly his brain make him press Z for weird reasons, (i tested it for hell days, if theres a problem please tell me).

Probably adding it later to server so every user can use it.

Any bug, shit, shit and more shit here please.

Console command: ShowProps

Sabb:
I love you. Thank you.

Navigation

[0] Message Index

Go to full version