SA-MP Forums Archive
I will deal with this later.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I will deal with this later.. (/showthread.php?tid=78041)



I will deal with this later.. - notec100 - 16.05.2009

Does anyone know how I may use a dcmd command and link it to the sub mission key and also with the action key? Thanks in advance!

EDIT** I am moving on from this issue and will try to tackle it later as it is not a huge deal atm.


Re: Dcmd help! - member - 16.05.2009

This tutorial might help on how to create a DCMD command:

http://forum.sa-mp.com/index.php?topic=100530.0

and for the buttons use OnPlayerKeyStateChange

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange


Re: Dcmd help! - notec100 - 16.05.2009

Quote:
Originally Posted by [B2K
Hustler ]
This tutorial might help on how to create a DCMD command:

http://forum.sa-mp.com/index.php?topic=100530.0

and for the buttons use OnPlayerKeyStateChange

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
I already made the commands I just do not know how to make them linked with onplayerkeystatechange since it is a dcmd it only gives an example for just a regular /command and I really don't want to have to change it from a dcmd to a basic /command. Is it only possible to use basic /commands with OPKSC or is there a certain way to use link a dcmd with it? Thanks in advance!


Re: Dcmd help! - member - 16.05.2009

show us your current command you want to be made to a button/key execution as well.


Re: Dcmd help! - notec100 - 16.05.2009

Quote:
Originally Posted by [B2K
Hustler ]
show us your current command you want to be made to a button/key execution as well.
Kinda large so I pastebinned it :P Thanks in advance!

http://pastebin.com/m6bd00b3


Re: Dcmd help! - Weirdosport - 16.05.2009

To link something to OPKSC you don't need normal commands or DCMD.. you just put all the functions/code you want in the callback, or link to it in stocks/functions/publics..


Re: Dcmd help! - notec100 - 16.05.2009

Quote:
Originally Posted by Weirdosport
To link something to OPKSC you don't need normal commands or DCMD.. you just put all the functions/code you want in the callback, or link to it in stocks/functions/publics..
So if I were to put the code into the callback OPKSC would I still be able to have the code as a dcmd as well? Sorry if that is a noob question but I have never messed with OPKSC with commands before :P


Re: Dcmd help! - member - 16.05.2009

Quote:
Originally Posted by notec100
Quote:
Originally Posted by Weirdosport
To link something to OPKSC you don't need normal commands or DCMD.. you just put all the functions/code you want in the callback, or link to it in stocks/functions/publics..
So if I were to put the code into the callback OPKSC would I still be able to have the code as a dcmd as well? Sorry if that is a noob question but I have never messed with OPKSC with commands before :P
BAsically, what he meant was for you to past your command stuff inside the OnPlayerKeyStateChange callback. OR the way i would do it is to make your own public and link it to that - the quickest way.

Post your command if you don't mind and i'll do it for you.


Re: Dcmd help! - notec100 - 16.05.2009

Quote:
Originally Posted by [B2K
Hustler ]
Quote:
Originally Posted by notec100
Quote:
Originally Posted by Weirdosport
To link something to OPKSC you don't need normal commands or DCMD.. you just put all the functions/code you want in the callback, or link to it in stocks/functions/publics..
So if I were to put the code into the callback OPKSC would I still be able to have the code as a dcmd as well? Sorry if that is a noob question but I have never messed with OPKSC with commands before :P
BAsically, what he meant was for you to past your command stuff inside the OnPlayerKeyStateChange callback. OR the way i would do it is to make your own public and link it to that - the quickest way.

Post your command if you don't mind and i'll do it for you.
I posted a pastebin link a post or so up on my command I am just a little confused on how to make a command a public plus still be able to use the command /ticket as well as be able to use submission button in car and action button on foot.. Sorry it's been awhile since I have been scripting so I feel stupid. It is appreciated for everyones help tho honestly!


Re: Dcmd help! - member - 16.05.2009

woah! your command is huge! lol

It seems your arrest command has parameters is it used like this? /arrest [targetid]

and if the player is nearby it will arrest him?

or there is an option of either arresting a nearby person or a specific person?