[UNSOLVED]walking drunk -
pmk1 - 04.04.2010
plz go down page and help me to fix that
Re: question about drunk level -
[MWR]Blood - 04.04.2010
pawn Код:
SetPlayerDrunkLevel(playerid,level);
Re: question about drunk level -
pmk1 - 04.04.2010
no i mean, what is the exact drunk lvl that the screen moves, not how to do it, thanks anyway
Re: question about drunk level -
[MWR]Blood - 04.04.2010
Well, higher drunk level = screen moves faster.
Look here for more info
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Re: question about drunk level -
pmk1 - 04.04.2010
so it's 2000? the minimum one 4 screen moves
Re: question about drunk level -
[MWR]Blood - 04.04.2010
I don't know lol, I don't use drunk level.Try it on your server.
Re: question about drunk level -
pmk1 - 04.04.2010
EDIT: new question, plz help xD
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) -
Last_Stand_Guardian - 04.04.2010
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 ^^
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) -
pmk1 - 05.04.2010
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?
Re: [UNSOLVED]problem with onplayerchangestate (drunk system) -
pmk1 - 05.04.2010
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;
}