This topic was marked solved by its starter, on June 20th, 06:04 PM

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 353
Cmd Help /exec
«  »
It seems weird to me asking this question. What is /exec command for? What is it's purpose?
I am gamer, programmer and hacker. Try to find me!
xD

UrbanY

  • Jr. Member
  • Posts: 87
Re: Cmd Help /exec
« Reply #1,  »
Quote from umar4911 on June 14th, 06:11 PM
It seems weird to me asking this question. What is /exec command for? What is it's purpose?
The cmds / exe It has as a job Execute all the functions that the server has for example function onPlayerJoin (player, user) immediately the server loads that function or for example in the local db q = QuerySQL (db, "SELECT * FROM Admins WHERE Name = 'UrbanY' "); MessagePlayer (GetSQLColumnData (q, 0))

Athanatos

  • Hero Member
  • Working on maybe the best VC:MP server ever
  • Posts: 585
Re: Cmd Help /exec
« Reply #2,  »
With /exec you execute squireill code. Like /exec FindPlayer("umar").Health = 0 .

Xmair

  • Wiki Contributor
  • Posts: 860
Re: Cmd Help /exec
« Reply #3,  »
Mostly the exec command is used to execute squirrel code using the compilestring function.
I convert minecraft worlds to VCMP, if you want your worlds to be converted, shoot me a PM! (Please note the paintings, flower pots, armour stands and custom skulls won't be converted within the model. Also big objects won't be converted)

[KM]Helathien

  • Newbie
  • Posts: 21
Re: Cmd Help /exec
« Reply #4,  »
It is used to execute functions.
The most Easy Example of which is,
/exec Message( "[INFO]Your Message Here" )

And it will send message.
You Can also execute custom function made by you.
Feel free to PM me for any help.
If I am not available on the forum come to VKs Official Server I am usually there.

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 353
Re: Cmd Help /exec
« Reply #5,  »
Quote from Helathien on June 20th, 08:27 PM
It is used to execute functions.
The most Easy Example of which is,
/exec Message( "[INFO]Your Message Here" )

And it will send message.
You Can also execute custom function made by you.
I already solved it. Btw thanks
I am gamer, programmer and hacker. Try to find me!
xD