Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on Jun 14, 2018, 05:11 PM

Title: Cmd Help /exec
Post by: umar4911 on Jun 14, 2018, 05:11 PM
It seems weird to me asking this question. What is /exec command for? What is it's purpose?
Title: Re: Cmd Help /exec
Post by: UrbanY on Jun 14, 2018, 05:41 PM
Quote from: umar4911 on Jun 14, 2018, 05:11 PMIt 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))
Title: Re: Cmd Help /exec
Post by: NicusorN5 on Jun 15, 2018, 09:11 AM
With /exec you execute squireill code. Like /exec FindPlayer("umar").Health = 0 .
Title: Re: Cmd Help /exec
Post by: Xmair on Jun 15, 2018, 12:16 PM
Mostly the exec command is used to execute squirrel code using the compilestring function.
Title: Re: Cmd Help /exec
Post by: [KM]Helathien on Jun 20, 2018, 07: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.
Title: Re: Cmd Help /exec
Post by: umar4911 on Jun 21, 2018, 03:19 AM
Quote from: Helathien on Jun 20, 2018, 07:27 PMIt 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
Title: Re: Cmd Help /exec
Post by: Kenneth Law on Mar 26, 2019, 01:15 PM
So how to disable /exec
Title: Re: Cmd Help /exec
Post by: umar4911 on Mar 26, 2019, 01:20 PM
Quote from: Kenneth Law on Mar 26, 2019, 01:15 PMSo how to disable /exec
remove the code from script