08.06.2010, 06:28
pawn Код:
}
}
}
}
}
if(PlayerInfo[i][pCarTime] > 0)
{
if(PlayerInfo[i][pCarTime] <= 0)
{
PlayerInfo[i][pCarTime] = 0;
}
else
{
PlayerInfo[i][pCarTime] -= 1;
ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
SetPlayerDrunkLevel(i, 10000);
PlayerDrunkTimeLeft += 1;
if(PlayerDrunkTimeLeft == 4)
{
PlayerDrunkTimeLeft = 0;
PlayerDrunk -= 1;
if(PlayerDrunk < 5)
{
GameTextForPlayer(i, "~w~Drunk Effect Has~n~~p~Wore Off", 3500, 1);
SetPlayerDrunkLevel(i, 0);
}
}
}
}
}
if(PlayerInfo[pCarTime] > 0)
{
if(PlayerInfo[pCarTime] <= 0)
{
PlayerInfo[pCarTime] = 0;
}
else
{
PlayerInfo[pCarTime] -= 1;
}
}