04.04.2010, 17:45
plz go down page and help me to fix that
SetPlayerDrunkLevel(playerid,level);
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!!");
}
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; }