BTNX Posted July 1, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 3 Joined: 04/02/12 Last Seen: October 22, 2022 Share Posted July 1, 2013 I'm not sure if this is the right section for this because I'm not sure if this is a source question or what. I need to add an @command "@support" and all it does is open a script... Similar to whisper system Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 1, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 1, 2013 Read: Bindatcmd 1 Quote Link to comment Share on other sites More sharing options...
BTNX Posted July 1, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 3 Joined: 04/02/12 Last Seen: October 22, 2022 Author Share Posted July 1, 2013 Ow... Thanks again... Btw, how would you use parameters? Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 1, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted July 1, 2013 OnInit: bindatcmd("<any command you want to use>",strnpcinfo(3)+ "::OnExe"); end; OnExe: // Execute code when the binded command was triggered by the user 2 Quote Link to comment Share on other sites More sharing options...
BTNX Posted July 1, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 3 Joined: 04/02/12 Last Seen: October 22, 2022 Author Share Posted July 1, 2013 Thanks for the reply... Is it possible to use parameters with this? Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 1, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 1, 2013 Please read the Wiki page I linked... .@atcmd_numparameters: The number of parameters defined. .@atcmd_parameters$[]: Array containing the given parameters, starting from an index of 0. Quote Link to comment Share on other sites More sharing options...
DeadlySilence Posted July 1, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share Posted July 1, 2013 .@atcmd_command$ = The name of the @command used. .@atcmd_parameters$[] = Array containing the given parameters, starting from an index of 0. .@atcmd_numparameters = The number of parameters defined. You can get command parameters with .@atcmd_parameters$[index]. So, @test a b would result in this: .@atcmd_command$ = @test .@atcmd_parameters$[0] = a .@atcmd_parameters$[1] = b .@atcmd_numparameters = 2 1 Quote Link to comment Share on other sites More sharing options...
BTNX Posted July 2, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 3 Joined: 04/02/12 Last Seen: October 22, 2022 Author Share Posted July 2, 2013 @Euphy... I'm aware of the link... I actually knew about that page, I just didn't understand it before. Thanks for the replies everyone... Quote Link to comment Share on other sites More sharing options...
Question
BTNX
I'm not sure if this is the right section for this because I'm not sure if this is a source question or what.
I need to add an @command "@support" and all it does is open a script... Similar to whisper system
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.