Discord
Steam
/
Garry's Mod
/
Developers
/
Problem with C..
Login/Join
Event Log
Problem with Custom commands!
0 replies, posted
Search
In This Thread
[CODE]function forums( ply ) ply:SendLua('gui.OpenURL( "http://thenexushub.net/index.php" )') end function donate( ply ) ply:SendLua('gui.OpenURL( "http://*********com/pql2uss" )') end function join_dr( ply ) ply:SendLua( 'RunConsoleCommand( "connect" ,"193.0.159.202:27465" )' ) end hook.Add( "PlayerSay", "Commands", Commands ) function Commands( ply, text, public ) if( string.sub( text, 1, 7) == "!website" ) then print("used !website") forums( ply ) elseif( string.sub( text, 1, 7) == "!donate" ) then print("used !donate") donate( ply ) elseif( string.sub( text, 1, 4) == "!ttt" ) then print("used !dr") join_dr( ply ) end end[/CODE] When I type it nothing happens. Can anyone tell me why?
Sorry, you need to
Log In
to post a reply to this thread.