duel command help
#1

plz somewone tell me how i can create a duel command because on wiki i don't see nothing about duel command
Reply
#2

There is no stock command for a duel if you want that you would have to make it yourself.
Or there are some Duel FS on the forum you could download those aswell,

/Artix
Reply
#3

ok Artix...or should i say Dopey first let's make peace then you can help me

so how to create myself? my duel
Reply
#4

If you don't know where to start, then I recommend you don't try scripting it yet; instead get a pencil and paper and write down exactly how you want it to work. Once you have done that you will have a set of smaller problems to solve as opposed to one big one, so it should be simpler, clearer and more easy to make. Here is what I mean:

Код:
Player 1 types /duel [id] > if it is a valid ID a message will be sent to Player 2 saying that Player 1 wants to duel him and that he must type /acceptduel or deny duel > Player 2 will either type: /acceptduel  > ......
             > if it is not a valid ID, send Player 1 saying that it is not and to try again.                                             : /denyduel   > ......
                                                                                                  : nothing at all > ......
By doing this and making sure it works how you want it to you will probably end up with a better end product than if you just start trying to code it.
Reply
#5

first i need a good code for my script ..you believe i can create my code in my mind? the result will be this
=> compilation aborted
so first maybe i need a example code of a duel plz help
Reply
#6

Quote:
Originally Posted by Sfinx_17
first i need a good code for my script ..you believe i can create my code in my mind? the result will be this
=> compilation aborted
so first maybe i need a example code of a duel plz help
If you ever take a computer programming class, the FIRST thing the professor will say...

"Control and C, and Control and V, are not coding. A 5 year old can do that. Type your own code or get out of my class."

Type it. It's an easy code.

Some pointers.

Add the command, make the player enter an ID of another player. Then have it set both players health to full, give them some good weapons, set a variable Duel, place them in a remote location, on player spawn, if(Duel[playerid] == 1) - Take away there guns, and Done.
Reply
#7

Quote:
Originally Posted by Sfinx_17
ok Artix...or should i say Dopey first let's make peace then you can help me

so how to create myself? my duel
Arrogant fuck. He's trying to help you, & you call him dopey. You're the dopey one. Ask in Script Request Thread if you want it made for you. You obviously wouldn't be able to create it yourself, for you seem like you've no knowledge about the Pawn Language.
Reply
#8

hey guys i don't understand you mean i can create in my pawno my own codes?
with "if" "==" "else" etc....i can make my own code to? plz i am to noob at pawno help me so i can?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)