05.04.2010, 18:40
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:
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; }