Hex code & On Hit animation - 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)
+--- Thread: Hex code & On Hit animation (
/showthread.php?tid=327450)
Hex code & On Hit animation -
milanosie - 21.03.2012
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,
Re: Hex code & On Hit animation -
milanosie - 21.03.2012
The hex code is the exact translation btw
Re: Hex code & On Hit animation -
Faisal_khan - 21.03.2012
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
Re: Hex code & On Hit animation -
milanosie - 21.03.2012
Quote:
Originally Posted by Faisal_khan
|
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.
Re: Hex code & On Hit animation -
Faisal_khan - 21.03.2012
We have a key 'Ctrl' and 'F' on our keyboard. Use that to find it.
Re: Hex code & On Hit animation -
milanosie - 21.03.2012
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.
Re: Hex code & On Hit animation -
Mr.Tony - 21.03.2012
You want the animation for CRACK or for DEATH?
Re: Hex code & On Hit animation -
milanosie - 21.03.2012
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
Re: Hex code & On Hit animation -
milanosie - 21.03.2012
bump, 3rd page:/
Re: Hex code & On Hit animation -
DarkScripter - 21.03.2012
Try this,
pawn Код:
new string[50]; format(string, sizeof(string),"0x%x", "6A");
myvar[playerid] = strval(string); // string to value