LUA BLOCK NOCLIP

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
BenMcDermott
Posts: 47
Joined: Sat Jan 14, 2006 6:31 am

LUA BLOCK NOCLIP

Post by BenMcDermott »

Post content removed
Last edited by BenMcDermott on Thu Jul 31, 2014 7:22 am, edited 1 time in total.
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

lua questions in modding forum pls :tut:
This thread should give you what you need
http://bani.anime.net/banimod/forums/vi ... php?t=6535
send lawyers, guns and money
BenMcDermott
Posts: 47
Joined: Sat Jan 14, 2006 6:31 am

Post by BenMcDermott »

Post content removed
Last edited by BenMcDermott on Thu Jul 31, 2014 7:22 am, edited 1 time in total.
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

The code in that thread shows you exactly how to disable a command, and how to send a message to a specific players console.
send lawyers, guns and money
User avatar
antman
Posts: 29
Joined: Mon Feb 09, 2004 7:54 am
Location: Afreuropamericasiaustralica
Contact:

Post by antman »

You can use Infty's nokill.lua as an example and modify it to your needs. I guess this is what you are looking for:

Code: Select all

------------------------------------------------------------------------
-- noclip.lua
------------------------------------------------------------------------

function et_ClientCommand(client, command)
  if string.lower(command) == "noclip" then
    et.trap_SendServerCommand( client, "cp \"^1Noclip has been disabled.\n\"" )
    return 1 
  end
end
Prometheus swept down from the heavens bringing the gift of fire.
Wrong move.

antman's etpro stuff
Post Reply