[lua]function OwnDoor(ply, cmd, args)
local trace = ply:GetEyeTrace() – define a name for where the player is aiming
if ( trace.Entity:IsValid() and trace.Entity:GetClass() == “prop_door_rotating” ) then – This line is the error for you idiots if you didn’t know…
if !ValidEntity( trace.Entity:GetNetworkedEntity( “owner” ) ) then – check if the entitys NWEntity has been Set already…
trace.Entity:SetNWString( “owner”, ply ) – Set the NWEntity to ply
if( ply:GetNWInt(“money”) >= 50 ) then – Check weather or not the player can afford to pay for this door.
ply:SetNWInt(“money”, ply:GetNWInt( “money” ) - 50 ) – Deduct the money from the player if he/she can afford it…
concommand.Add(“ownthisdoor”, OwnDoor )
Retard, it wasn’t my code… you make me want to kill my self i said lock so i wouldn’t get flamed by a stupid twat like you.
I have coded it a different way now… Should’ve put you both on my ignore/troll list ages ago
|FlapJack| you are the biggest faggot in the world, who likes to piss people off constantly, hey you should act your age and ignore FIXED threads, and Help other people not FUCKING FLAME YOU TWAT enough said.
(User was permabanned for this post ("Flaming" - grea$emonkey))
Wait, I don’t know Lua? But I think I do… Does that mean that if I don’t know Lua but I really do, it will create a rip in space and engulf the entire universe until it’s the size of a 1cm x 1cm x 1cm block of carbon? Then what?
I apologize, boredom overrides logical thinking processes.