Some help - 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: Some help (
/showthread.php?tid=550617)
Some help -
Iuri - 13.12.2014
How can I set someone to use KEY_HANDBRAKE ( while on foot ) when they press KEY_WALK?
Re: Some help -
Abagail - 13.12.2014
You can't. I replied to your other thread -
https://sampforum.blast.hk/showthread.php?tid=550612 which is basically the same thing.
Basically aiming can be roughly simulated using animations.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_WALK)
{
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);
return 1;
}
return true;
}
Just an example of how such a thing can be accomplished.