Ulysses
Home
Help
Ulysses
»
General
»
Developers Corner
»
Need a command
« previous next »
Print
Pages: [
1
]
Go Down
Author
Topic: Need a command (Read 4106 times)
0 Members and 1 Guest are viewing this topic.
XxLMM13xX
Sr. Member
Posts: 265
Karma: -51
New to lua development
Need a command
«
on:
November 14, 2014, 05:38:54 pm »
Yes i know i asked this another time before but can i get a command that is call website that opens with !website and opens to a link. Just put the link to google and ill change it.
Thanks!!!
Logged
Made addons:
ulx voterestart
---
ulx darkrp
---
Simple Hopper
---
ulx user commands
---
ulx bailsystem
---
ulx timeout
---
Police Ticket System
---
My Steam
---
My YouTube
bender180
Full Member
Posts: 217
Karma: 42
Re: Need a command
«
Reply #1 on:
November 15, 2014, 07:39:34 am »
next time use the forum search this has been posted at least two dozen times,
Code: Lua
function
webCommand
(
pl
,
text
,
teamonly
)
if
(
text
==
"!website"
)
then
pl
:
SendLua
(
[[gui.OpenURL("http://www.google.ca/")]]
)
-- Change ADDRESS to your chosen page.
for
k
,
v
in
pairs
(
player
.
GetAll
(
)
)
do
v
:
ChatPrint
(
"Player "
..
pl
:
Nick
(
)
..
" has visited our website."
)
end
end
end
hook
.
Add
(
"PlayerSay"
,
"Chat"
,
webCommand
)
Logged
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.
XxLMM13xX
Sr. Member
Posts: 265
Karma: -51
New to lua development
Re: Need a command
«
Reply #2 on:
November 15, 2014, 08:31:26 am »
Thank you so much!!!!
Logged
Made addons:
ulx voterestart
---
ulx darkrp
---
Simple Hopper
---
ulx user commands
---
ulx bailsystem
---
ulx timeout
---
Police Ticket System
---
My Steam
---
My YouTube
Print
Pages: [
1
]
Go Up
« previous next »
Ulysses
»
General
»
Developers Corner
»
Need a command