Garry's Mod

Need help with darkrp chat commands

Submitted by Uns0ip, , Thread ID: 88213

Thread Closed
11-05-2018, 09:46 PM
#1
Hello, I want to add two darkrp chat commands. It is /do and /try. /try command like /roll command but instead numbers from 1 to 100 i want to add "true" or "false". /do command like /me command but it means action in third person. For example, /me activate lightsaber /dolightsaber is activated
Can someone give me a code of this commands. Help please

RE: Need help with darkrp chat commands

#2
if ( SERVER ) then

hook.Add( "PlayerSay", "playersaywebsite", function( _p, _text, public )

if ( _text == " CHAT COMMAND " ) then
_p:ConCommand( " COMMAND " );
return "";
end

end );

end

RE: Need help with darkrp chat commands

#3
If you have literally no lua knowladge I doubt your server will get anywhere, as you will rely on gmodstore making your server shitty

RE: Need help with darkrp chat commands

#4
f ( SERVER ) then

hook.Add( "PlayerSay", "playersaywebsite", function( _p, _text, public )

if ( _text == " CHAT COMMAND " ) then
_p:ConCommand( " COMMAND " );
return "";
end

end );

end

RE: Need help with darkrp chat commands

#5
13-05-2018, 08:19 PM
lolxoxoxo Wrote:
If you have literally no lua knowladge I doubt your server will get anywhere, as you will rely on gmodstore making your server shitty

so true. at least some people know how to edit but 0 experience well.. rip

RE: Need help with darkrp chat commands

#6
you do realizce there's a lua section for developers on facepunch

Users browsing this thread: 6 Guest(s)