Hex code & On Hit animation
#1

Hey, I have 2 questions.
One, is it possible to write a function/variable in hex code?

Like Instead of
pawn Код:
if(PlayerInfo[playerid][Cash] >= money2 && money2 > 0)
I write:

pawn Код:
69 66 28 50 6c 61 79 65 72 49 6e 66 6f 5b 70 6c 61 79 65 72 69 64 5d 5b 43 61 73 68 5d 20 3e 3d 20 6d 6f 6e 65 79 32 20 26 26 20 6d 6f 6e 65 79 32 20 3e 20 30 29
Second question is:

What is the animation of the player when he/she gets hit by a gun?


Thanks,
Reply
#2

The hex code is the exact translation btw
Reply
#3

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Second question is:

What is the animation of the player when he/she gets hit by a gun?


Thanks,
A list of anims:

Animations
Reply
#4

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
A list of anims:

Animations
I know about that, but Its kind of hard to find an animation that you do not know the name of in a list of 10000 animations.
Reply
#5

We have a key 'Ctrl' and 'F' on our keyboard. Use that to find it.
Reply
#6

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
We have a key 'Ctrl' and 'F' on our keyboard. Use that to find it.
Alright, if that is your answer to this it would make more sense to not give any answer.
Reply
#7

You want the animation for CRACK or for DEATH?
Reply
#8

Quote:
Originally Posted by Mr.Tony
Посмотреть сообщение
You want the animation for CRACK or for DEATH?
None of those, Like when you get shot with a deagle your char does like a step back
Reply
#9

bump, 3rd page:/
Reply
#10

Try this,

pawn Код:
new string[50]; format(string, sizeof(string),"0x%x", "6A");
myvar[playerid] = strval(string);  // string to value
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)