ApplyAnimation don't work =/
#1

Hi again =)

So this Is my Code and I want to see the drunken walk xD...but it doesn't work
Код:
  if(strcmp("/talcohol",cmdtext,true) == 0)
  {
  if(alcohol[playerid] >= 1)
  {
  ApplyAnimation(playerid,"DRUNK","WALK_drunk",4.1,0,0,0,0,1000);
  alcohol[playerid] -=1;
  }
  else
  {
  SendClientMessage(playerid,COLOR_RED,"You Don't Have Alcohol!");
  }
  return 1;
  }
Anyone have an Idea why ?
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/drunk", true) == 0) {
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
          ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
            return 1;
        }
    }
Try this one
Reply
#3

Works =)
thanks very much

Bearfist
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)