Author Topic: [Tool] Prop Spawn Checker [ClientSide]  (Read 99 times)

0 Members and 1 Guest are viewing this topic.

Offline Rbn

  • **
  • Linux UserOld Forum MemberrNd Developer
    View More Badges!

  • Posts: 55
  • Gender: Male
  • Include( 'Yuban.lua' )
[Tool] Prop Spawn Checker [ClientSide]
« on: September 04, 2010, 07:57:18 PM »
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 ;).
« Last Edit: September 04, 2010, 08:04:49 PM by Luben »


Offline Rbn

  • **
  • Linux UserOld Forum MemberrNd Developer
    View More Badges!

  • Posts: 55
  • Gender: Male
  • Include( 'Yuban.lua' )
Re: [Tool] Prop Spawn Checker [ClientSide]
« Reply #1 on: March 15, 2013, 08:57:11 PM »
Bump <- i guess this means, put on top again?. NPI = No fucking idea, in spanish.

Code: [Select]
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.

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
« Last Edit: March 15, 2013, 08:59:08 PM by Rbn »


Offline Sabb

  • ***
  • 2009 Snowball Competition WinnerWindows UserOld Forum MemberDedicated Summoner
    View More Badges!

  • Posts: 7378
  • Gender: Female
Re: [Tool] Prop Spawn Checker [ClientSide]
« Reply #2 on: March 15, 2013, 09:25:48 PM »
I love you. Thank you.


Lithuanian pride world wide!: sun doesnt revolve around the sun