Garry's Mod

Need help with darkrp chat commands

Submitted by Uns0ip, , Thread ID: 88213

Thread Closed
Uns0ip
Junior Member
Level:
0
Reputation:
0
Posts:
59
Likes:
2
Credits:
5
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

Lightheaded
Novice
Level:
0
Reputation:
0
Posts:
23
Likes:
1
Credits:
0
12-05-2018, 02:36 PM
#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

lolxoxoxo
Active Member
Level:
0
Reputation:
0
Posts:
208
Likes:
6
Credits:
0
13-05-2018, 08:19 PM
#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

DaddyDivine
Closed Account
Level:
0
Reputation:
0
Posts:
9
Likes:
1
Credits:
9
14-05-2018, 06:57 AM
#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

Lokia3
Novice
Level:
0
Reputation:
0
Posts:
49
Likes:
0
Credits:
8
14-05-2018, 12:00 PM
#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

Siox1
Novice
Level:
0
Reputation:
0
Posts:
43
Likes:
0
Credits:
0
14-05-2018, 02:40 PM
#6
you do realizce there's a lua section for developers on facepunch

Users browsing this thread: 1 Guest(s)