[UNSOLVED]walking drunk
#1

plz go down page and help me to fix that
Reply
#2

pawn Код:
SetPlayerDrunkLevel(playerid,level);
Reply
#3

no i mean, what is the exact drunk lvl that the screen moves, not how to do it, thanks anyway
Reply
#4

Well, higher drunk level = screen moves faster.
Look here for more info https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Reply
#5

so it's 2000? the minimum one 4 screen moves
Reply
#6

I don't know lol, I don't use drunk level.Try it on your server.
Reply
#7


EDIT: new question, plz help xD
Reply
#8

pawn Код:
if(newstate == PLAYER_STATE_ONFOOT && GetPlayerDrunkLevel(playerid) > 1000)
{
    ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
       SendClientMessage(playerid,COLOR_YELLOW,"You're Drunk!!");
}
With this you say that the animation shall start after the newstate is ONFOOT :O
So: Oldstate: ONFOOT --> Newstate:Car --> Newstate:ONFOOT <--- Start :O

You have better to add the animation at the point where players get set the drunklevel ^^
Reply
#9

ok thanks for the correction but the point is that i don't know the Right level of drunkness when the camera starts to move. do you know it you? xd because i don't want that if a player only take one gulp they get drunk, i want it so when the camera starts to move, they play the animation. Thanks if you can tell me xd. Or do you know how much increases the drunk level at each gulps?
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)