[UNSOLVED]walking drunk
#10

still not working for my thing, how can i do so the animation starts at the point where players get set the drunklevel ?

here's script:
Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
	if(oldstate == PLAYER_STATE_ONFOOT && GetPlayerDrunkLevel(playerid) > 100)
  {
  	ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
  }

  if(newstate == PLAYER_STATE_ONFOOT && GetPlayerDrunkLevel(playerid) > 100)
  {
  	ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
  }


	return 1;
}
Reply


Messages In This Thread
[UNSOLVED]walking drunk - by pmk1 - 04.04.2010, 17:45
Re: question about drunk level - by [MWR]Blood - 04.04.2010, 17:45
Re: question about drunk level - by pmk1 - 04.04.2010, 17:47
Re: question about drunk level - by [MWR]Blood - 04.04.2010, 17:48
Re: question about drunk level - by pmk1 - 04.04.2010, 17:50
Re: question about drunk level - by [MWR]Blood - 04.04.2010, 17:51
Re: question about drunk level - by pmk1 - 04.04.2010, 17:52
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) - by Last_Stand_Guardian - 04.04.2010, 19:20
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) - by pmk1 - 05.04.2010, 03:22
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) - by pmk1 - 05.04.2010, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)