I will deal with this later..
#1

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.
Reply
#2

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
Reply
#3

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!
Reply
#4

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

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
Reply
#6

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..
Reply
#7

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
Reply
#8

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.
Reply
#9

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!
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)