10.12.2010, 02:04
(
Last edited by The_Gangstas; 10/12/2010 at 02:23 AM.
)
alright, so it looks like i'll look at sief's script
hes got the walking done but, he uses this for walking
4.1 speed what speed you think i should use for running?
does this look right?
first 3, for walking
second 3, for holding sprint key
last one, for tapping sprint
hes got the walking done but, he uses this for walking
pawn Code:
ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
does this look right?
pawn Code:
if (newkeys & KEY_WALK && newkeys & KEY_UP || newkeys & KEY_WALK && newkeys & KEY_DOWN || newkeys & KEY_WALK && newkeys & KEY_LEFT || newkeys & KEY_WALK && newkeys & KEY_RIGHT
|| oldkeys & KEY_WALK && newkeys & KEY_UP || oldkeys & KEY_WALK && newkeys & KEY_DOWN || oldkeys & KEY_WALK && newkeys & KEY_LEFT || oldkeys & KEY_WALK && newkeys & KEY_RIGHT
|| newkeys & KEY_WALK && oldkeys & KEY_UP || newkeys & KEY_WALK && oldkeys & KEY_DOWN || newkeys & KEY_WALK && oldkeys & KEY_LEFT || newkeys & KEY_WALK && oldkeys & KEY_RIGHT
|| newkeys & KEY_SPRINT && newkeys & KEY_UP || newkeys & KEY_SPRINT && newkeys & KEY_DOWN || newkeys & KEY_SPRINT && newkeys & KEY_LEFT || newkeys & KEY_SPRINT && newkeys & KEY_RIGHT
|| oldkeys & KEY_SPRINT && newkeys & KEY_UP || oldkeys & KEY_SPRINT && newkeys & KEY_DOWN || oldkeys & KEY_SPRINT && newkeys & KEY_LEFT || oldkeys & KEY_SPRINT && newkeys & KEY_RIGHT
|| newkeys & KEY_SPRINT && oldkeys & KEY_UP || newkeys & KEY_SPRINT && oldkeys & KEY_DOWN || newkeys & KEY_SPRINT && oldkeys & KEY_LEFT || newkeys & KEY_SPRINT && oldkeys & KEY_RIGHT
|| newkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
|| oldkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
|| newkeys & KEY_UP && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && oldkeys & KEY_SPRINT == KEY_SPRINT)
&& GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
}
second 3, for holding sprint key
last one, for tapping sprint